CI: try with ngin

This commit is contained in:
prosety
2022-11-25 19:54:41 +01:00
parent 0d532dea76
commit 6a5803a353

View File

@@ -1,13 +1,13 @@
FROM node:18-alpine FROM node:18-alpine as develop-stage
WORKDIR /app WORKDIR /app
COPY package*.json ./
COPY package.json /app/
RUN npm install RUN npm install
COPY . . COPY . .
FROM develop-stage as build-stage
RUN npm run build RUN npm run build
FROM nginx:1.15.7-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80 EXPOSE 80
CMD npx vite preview --port 80 CMD ["nginx", "-g", "daemon off;"]