Files
edb-www/Dockerfile
Leander Furumo 39b7158b94 copy correct directory
and avoid naming confusion between the workdir and the name of the build
output folder
2025-09-30 23:32:39 +02:00

23 lines
288 B
Docker

# Build
FROM node:18-alpine AS build
WORKDIR /edb-www
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
# Serve
FROM nginx:stable-alpine AS runtime
COPY --from=build /edb-www/app /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]