Files
HellreigN/frontend/dockerfile
T
d3m0k1d 8913353e64
ci-agent / build (push) Failing after 25s
chore: add dockerfile and nginx conf for frontend
2026-04-03 19:43:27 +03:00

17 lines
305 B
Docker

FROM node:25-alpine3.23 AS builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]