Files
edb-www/Dockerfile
2025-09-30 23:35:58 +02:00

23 lines
292 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 443
CMD ["nginx", "-g", "daemon off;"]