Last active
November 4, 2018 02:25
-
-
Save torchhound/76d4c644b78f437fa1e792e84a6e8bd2 to your computer and use it in GitHub Desktop.
mongo-crud docker/Dockerfile.production
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.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