Skip to content

Commit

Permalink
update Docker builds to include NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
esatterwhite committed May 2, 2017
1 parent effa81d commit f9b7d7c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ npm-debug.log
*.tgz
coverage/
*.save
.test
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ assets
*.tgz
jsdoc.json
docs/
.test
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ node_js:
addons:
code_climate:
repo_token: 248135f96061f77d2e5f78526432fd096785d2914d8f5a73a04c061000939d5d
env:
- NODE_ENV=test
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM mhart/alpine-node:7
ENV storage__path /var/data/skyring
ENV NODE_ENV=production
COPY . /opt/skyring
WORKDIR /opt/skyring
RUN apk update && \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM mhart/alpine-node:7
ADD skyring.tgz /opt
WORKDIR /opt/skyring
ENV storage__path /var/data/skyring
ENV NODE_ENV=production
RUN mkdir -p /var/data/skyring
VOLUME /var/data/skyring
CMD ["node", "index.js"]

0 comments on commit f9b7d7c

Please sign in to comment.