Skip to content

Instantly share code, notes, and snippets.

@bradiosd
Created January 13, 2021 11:44
Show Gist options
  • Save bradiosd/79aa76e6bf48b46849fba22f01eb3cd6 to your computer and use it in GitHub Desktop.
Save bradiosd/79aa76e6bf48b46849fba22f01eb3cd6 to your computer and use it in GitHub Desktop.
# 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