Files
lincodex/frontend/Dockerfile
T
2026-10-05 14:23:31 +03:00

22 lines
638 B
Docker

FROM node:alpine AS build
WORKDIR /workspace/frontend
RUN npm install --global pnpm@12.9.1
COPY frontend/package.json frontend/pnpm-lock.yaml frontend/pnpm-workspace.yaml ./
RUN pnpm install --frozen-lockfile
COPY frontend/ ./
RUN pnpm run build
FROM nginxinc/nginx-unprivileged:alpine
COPY --from=build /workspace/frontend/dist/ /usr/share/nginx/html/
COPY deploy/nginx/nginx.conf /etc/nginx/nginx.conf
COPY deploy/nginx/conf.d/app.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
USER 101
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD ["wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/healthz"]