Last active
September 12, 2023 12:58
-
-
Save ravshansbox/ec63b350c5554269985c59e7d1604b73 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
FROM node:18-alpine AS build | |
WORKDIR /app | |
COPY package.json package-lock.json ./ | |
RUN npm ci | |
COPY . ./ | |
RUN npm run build | |
RUN find ./dist -type f | xargs gzip -k | |
FROM nginx:1-alpine | |
COPY nginx.conf /etc/nginx/conf.d/default.conf | |
COPY --from=build /app/dist /usr/share/nginx/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment