This repository has been archived on 2023-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pocketbase-quasar-lista/Dockerfile
2023-03-10 11:45:33 +01:00

20 lines
450 B
Docker

# develop stage
FROM node:14.21.2-alpine as develop-stage
WORKDIR /app
COPY package*.json ./
RUN npm install -g npm@latest
RUN npm i -g @quasar/cli
COPY . .
# build stage
FROM develop-stage as build-stage
RUN npm i
RUN quasar build
# production stage
FROM nginx:1.17.5-alpine as production-stage
COPY --from=build-stage /app/dist/spa /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]