Created
June 16, 2023 12:06
-
-
Save LennonSantos/e85fe116057ab00127143cdea18afc99 to your computer and use it in GitHub Desktop.
Dockerfile to quasar framework
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
# develop stage | |
FROM node:20-alpine as develop-stage | |
WORKDIR /app | |
COPY ./app/package*.json ./ | |
RUN yarn | |
COPY ./app . | |
# build stage | |
FROM develop-stage as build-stage | |
RUN yarn | |
RUN yarn build | |
# production stage | |
FROM nginx:1.25.0-alpine as production-stage | |
COPY --from=build-stage /app/dist/spa /usr/share/nginx/html | |
EXPOSE 80 | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment