Last active
April 29, 2020 14:48
-
-
Save vschoener/ed943994008331da8f9ce9c9edcbacc9 to your computer and use it in GitHub Desktop.
Dockerfile stage 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
# | |
# Production stage. | |
# This state compile get back the JavaScript code from builder stage | |
# It will also install the production package only | |
# | |
FROM node:12.13.0-alpine | |
WORKDIR /app | |
ENV NODE_ENV=production | |
COPY package*.json ./ | |
RUN npm ci --quiet --only=production | |
## We just need the build to execute the command | |
COPY --from=builder /usr/src/app/build ./build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment