14 lines
368 B
Docker
14 lines
368 B
Docker
# Build context is the repository root (see docker-compose.yml) so this
|
|
# stage can reach both frontend/ and nginx/.
|
|
FROM node:24-alpine AS build
|
|
WORKDIR /app
|
|
COPY frontend/package.json ./
|
|
RUN npm install
|
|
COPY frontend/ .
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27-alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
|
EXPOSE 80
|