updated Docker and docker-compose files
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
# =========== 1) Build stage ===========
|
||||
FROM node:18-alpine AS build
|
||||
FROM node:22-alpine AS build
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package manifests and install dependencies
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the frontend code
|
||||
@@ -19,7 +21,7 @@ FROM nginx:alpine
|
||||
# Copy production build to Nginx html folder.
|
||||
# Adjust /usr/src/app/build -> /usr/src/app/dist if you’re using Angular/Vue
|
||||
#COPY --from=build /usr/src/app/build /usr/share/nginx/html
|
||||
COPY --from=build /usr/src/app /usr/share/nginx/html
|
||||
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
|
||||
|
||||
# Expose HTTP port
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user