Skip to content

Commit

Permalink
Add Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
paroxp committed Nov 22, 2018
1 parent 6078865 commit 5a3e927
Show file tree
Hide file tree
Showing 2 changed files with 14 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
usage-data-config.json
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:8.12-alpine

ADD . /app
WORKDIR /app

ARG COLLECT_USAGE_DATA=true

RUN npm install
RUN echo "{\"collectUsageData\": $COLLECT_USAGE_DATA}" > usage-data-config.json

EXPOSE 3000
CMD ["npm", "start"]

0 comments on commit 5a3e927

Please sign in to comment.