Dockerfile, nastrel verejne casti
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
# develop stage
|
||||
FROM node:20-alpine as develop-stage
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN yarn global add @quasar/cli && yarn --production=false
|
||||
COPY . .
|
||||
|
||||
# build stage
|
||||
FROM develop-stage as build-stage
|
||||
RUN yarn --production=false
|
||||
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
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user