Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Dockerfile #1180

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Use the official Node.js image as the base image
FROM node:16.20.2
FROM node:22-slim

# Set the working directory in the Docker container
WORKDIR /usr/src/app

# Copy the package.json and package-lock.json files to the container
COPY package.json package-lock.json ./

# Copy the packages in this monorepo to the container
COPY ./packages ./packages

# Install the required npm packages in the container
RUN npm install

Expand All @@ -17,4 +20,4 @@ COPY demo ./demo
EXPOSE 8080

# Start the Koop server
CMD ["node", "demo/index.js"]
CMD ["npm", "run", "demo"]
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,25 @@ Koop's plugin-architecture facilates custom deployments specific to your needs.
![lots of geojson into feature services](https://user-images.githubusercontent.com/7832202/28444721-43eb6ea6-6d8d-11e7-8d56-3af46fd5bf88.png)

## Demo
Want to see Koop in action? The repository ships with a demo that shows Koops support for GeoServices (ArcGIS). It leverages the file-geojson data provider and the GeoServices output-plugin:

Want to see Koop in action? The repository ships with a demo that shows Koop's support for GeoServices (ArcGIS). It leverages the `file-geojson` data provider and the GeoServices output plugin.

You can run the demo with npm:

```bash
git clone https://github.com/koopjs/koop
cd koop
npm run demo
```

Or if you'd prefer to run the demo in a Docker container:

```bash
cd koop
docker build -t koop .
docker run -p 8080:8080 --rm koop
```

Koop will start listening on port 8080. You should the following console logging noting the exposed file-geojson/GeoService routes:

```bash
Expand Down