Skip to content

Instantly share code, notes, and snippets.

@LennonSantos
Created June 16, 2023 12:06
Show Gist options
  • Save LennonSantos/e85fe116057ab00127143cdea18afc99 to your computer and use it in GitHub Desktop.
Save LennonSantos/e85fe116057ab00127143cdea18afc99 to your computer and use it in GitHub Desktop.
Dockerfile to quasar framework
# 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