Fixed dockerfile
This commit is contained in:
parent
fdf5f7da0c
commit
fff73d3736
|
|
@ -1,5 +1,5 @@
|
|||
# Build Stage
|
||||
FROM node:18-alpine AS BUILD
|
||||
FROM node:22-alpine AS build
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
|
@ -12,9 +12,11 @@ RUN npm ci
|
|||
|
||||
# Copy the rest of your application files
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Production Stage
|
||||
FROM nginx:stable-alpine AS PRODUCTION
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
FROM nginx:stable-alpine AS production
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue