CI: try with ngin
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,13 +1,13 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
FROM node:18-alpine as develop-stage
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json /app/
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM develop-stage as build-stage
|
||||
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
|
||||
CMD npx vite preview --port 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
Reference in New Issue
Block a user