Skip to content

Instantly share code, notes, and snippets.

@hieulm
Created June 4, 2019 09:44
Show Gist options
  • Save hieulm/00560b370762905dba485dfb8166c270 to your computer and use it in GitHub Desktop.
Save hieulm/00560b370762905dba485dfb8166c270 to your computer and use it in GitHub Desktop.
Nodejs Dockerfile
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