Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
added ENV to Dockerfile, also deployment to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Jun 20, 2017
1 parent 53f264e commit 4508920
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 22 deletions.
20 changes: 0 additions & 20 deletions .circleci/circle.yml

This file was deleted.

4 changes: 3 additions & 1 deletion Dockerfile
Expand Up @@ -5,5 +5,7 @@ WORKDIR /app
RUN mkdir static
RUN npm install

EXPOSE 1443
ENV PORT=1443
EXPOSE $PORT

CMD ["npm", "start"]
7 changes: 7 additions & 0 deletions circle.yml
Expand Up @@ -2,3 +2,10 @@ machine:
node:
version: 8.0.0

deployment:
latest:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker build . -t mozilla/portal:latest
- docker push mozilla/portal:latest
1 change: 1 addition & 0 deletions docs/docker.md
@@ -1,5 +1,6 @@
Environment Variables:

PORT - port the server will listen on (defaults to 1443)
P2P_S3_BUCKET - the S3 bucket name
P2P_REDIS_HOST - host name of the redis server
NODE_ENV - production
Expand Down
2 changes: 1 addition & 1 deletion server/config.js
Expand Up @@ -20,7 +20,7 @@ const conf = convict({
format: 'port',
default: 1443,
arg: 'port',
env: 'P2P_LISTEN_PORT'
env: 'PORT'
},
env: {
format: ['production', 'development', 'test'],
Expand Down

0 comments on commit 4508920

Please sign in to comment.