forked from mtusi2026/mtusi2026lab3
16 lines
481 B
Docker
16 lines
481 B
Docker
FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f AS frontend-build
|
|
|
|
WORKDIR /frontend
|
|
COPY frontend/package.json frontend/package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY frontend/ ./
|
|
RUN npm test && npm run build
|
|
|
|
FROM nginx:1.30.6-alpine@sha256:970364228b1e4f932abc22d321932816782cca8a20b85a77552a7cfe9acfb3b5
|
|
|
|
COPY infrastructure/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=frontend-build /frontend/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 8080
|