Created
June 4, 2019 09:44
-
-
Save hieulm/00560b370762905dba485dfb8166c270 to your computer and use it in GitHub Desktop.
Nodejs Dockerfile
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:10.15.3-alpine | |
WORKDIR /opt | |
ENV NODE_ENV=development | |
ENV HOST=localhost | |
ENV PORT=8000 | |
ENV MONGO_URL=mongodb://localhost:27017/sample-service | |
ENV RABBIT_URL=amqp://rabbit:rabbit@rabbitmq:5672/example | |
COPY package*.json /opt/ | |
RUN npm install --production | |
COPY ./ /opt | |
EXPOSE 8000 | |
CMD ["node", "src/bootstrap.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment