updated Docker and docker-compose files

This commit is contained in:
2025-12-26 08:45:47 +01:00
parent 06788abe49
commit 2697aee592
8 changed files with 82 additions and 34 deletions
+5 -3
View File
@@ -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 youre 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