copy correct directory

and avoid naming confusion between the workdir and the name of the build
output folder
This commit is contained in:
2025-09-30 23:32:39 +02:00
parent 4ab4307e6f
commit 39b7158b94

View File

@@ -1,7 +1,7 @@
# Build
FROM node:18-alpine AS build
WORKDIR /app
WORKDIR /edb-www
COPY package.json package-lock.json ./
@@ -14,7 +14,7 @@ RUN npm run build
# Serve
FROM nginx:stable-alpine AS runtime
COPY --from=build /app /usr/share/nginx/html
COPY --from=build /edb-www/app /usr/share/nginx/html
EXPOSE 80