Created
February 17, 2023 02:58
-
-
Save mrbusche/3d17ab56f02efff010306e70a996d915 to your computer and use it in GitHub Desktop.
docker build for webapp
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:18 as builder | |
WORKDIR /workspace | |
COPY package*.json . | |
RUN npm ci | |
COPY . . | |
RUN npm run build:prod -- --output-path=/webapp | |
FROM nginx:1.23 | |
COPY --from=builder /webapp /app | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment