-
-
Save marr/205b1d8108063c45678a3df53bef1f1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
app: | |
build: | |
context: . | |
args: | |
- NPM_TOKEN | |
- OPS_NPM_TOKEN | |
links: | |
- redis | |
ports: | |
- "3001:3001" | |
redis: | |
image: redis | |
ports: | |
- "6379" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:stretch | |
ENV APP=venuemapsapi | |
## nodejs | |
ARG NPM_TOKEN | |
WORKDIR /usr/src/app | |
ADD . /usr/src/app | |
RUN echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN:-$OPS_NPM_TOKEN}" > ~/.npmrc | |
RUN npm install | |
RUN rm -rf ~/.npmrc | |
CMD [ "npm", "start" ] | |
EXPOSE 3001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment