Skip to content

Commit

Permalink
feat(containers): add Dockerfile
Browse files Browse the repository at this point in the history
Close #28
  • Loading branch information
g-div committed Nov 1, 2017
1 parent c68e8a1 commit 517df75
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:boron

WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install

COPY . .

EXPOSE 3000
CMD [ "npm", "run", "server" ]
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,26 @@ You can provide a list of user IDs of people you trust for each authentication p
}
```

### Run in Docker

You can build a Docker image for the schnack server running:

```sh
docker build -t gka/schnack .
```

The image will contain everything in the project folder and can be started with:

```sh
docker run -p 3000:3000 -d gka/schnack
```

In order to be able to edit your config file and your SQL database files, you may be want to share the project folder with the docker container:

```sh
docker run -p 3000:3000 -v $(pwd):/usr/src/app -d gka/schnack
```

### Who is behind Schnack?

Schnack is [yet another](https://github.com/gka/canvid/) happy collaboration between [Webkid](https://webkid.io/) and [Gregor Aisch](https://www.vis4.net).
Expand Down

0 comments on commit 517df75

Please sign in to comment.