Dockerfile fixed
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,12 +1,14 @@
|
|||||||
FROM node:22.18.0-alpine as build
|
FROM node:22-bullseye AS build
|
||||||
|
|
||||||
WORKDIR /usr/app
|
WORKDIR /app
|
||||||
COPY . /usr/app
|
COPY . .
|
||||||
RUN npm i
|
RUN rm -rf node_modules package-lock.json
|
||||||
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:1.23.1-alpine
|
FROM nginx:alpine
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
COPY --from=build /usr/app/dist /usr/share/nginx/html
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
Reference in New Issue
Block a user