Skip to content

Instantly share code, notes, and snippets.

@torchhound
Last active November 4, 2018 02:25
Show Gist options
  • Save torchhound/76d4c644b78f437fa1e792e84a6e8bd2 to your computer and use it in GitHub Desktop.
Save torchhound/76d4c644b78f437fa1e792e84a6e8bd2 to your computer and use it in GitHub Desktop.
mongo-crud docker/Dockerfile.production
FROM node:10.12.0-alpine
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
RUN chmod +x /wait
WORKDIR /home/nodejs/app
ENV NODE_ENV prod
COPY package*.json ./
RUN npm install --only=production
ARG port=80
EXPOSE $port
COPY . ./
CMD /wait && node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment