14 lines
431 B
Docker
14 lines
431 B
Docker
|
|
FROM node:22-alpine AS builder
|
||
|
|
WORKDIR /app
|
||
|
|
COPY frontend/package*.json ./
|
||
|
|
RUN npm ci
|
||
|
|
COPY frontend/ ./
|
||
|
|
RUN npm run build
|
||
|
|
|
||
|
|
FROM nginx:alpine
|
||
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||
|
|
COPY deploy/podman/images/frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
||
|
|
COPY deploy/podman/images/frontend/docker-entrypoint.sh /docker-entrypoint.d/40-inject-config.sh
|
||
|
|
RUN chmod +x /docker-entrypoint.d/40-inject-config.sh
|
||
|
|
EXPOSE 80
|