Files
lub-web-monorepo/Dockerfile.frontend
T
t.leonards ae33874ae0
Deploy to Dev Server / deploy (push) Has been cancelled
initial commit
2026-03-26 16:10:45 +01:00

12 lines
317 B
Docker

FROM node:20-alpine AS build
WORKDIR /app
COPY apps/frontend/package*.json ./
RUN npm install
COPY apps/frontend .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist/*/browser /usr/share/nginx/html
COPY apps/frontend/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]