Created
January 13, 2021 11:44
-
-
Save bradiosd/79aa76e6bf48b46849fba22f01eb3cd6 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
# Set base Docker image | |
FROM node:13.12.0-alpine as build | |
# Set working directory within Docker image | |
WORKDIR /var/app | |
# Install NPM packages and copy | |
COPY . . | |
RUN rm -rf node_modules | |
RUN npm ci | |
# Expose ports | |
EXPOSE 3000 | |
# Development only | |
CMD ["npm", "run", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment