docker fix

This commit is contained in:
2026-04-10 09:22:50 +00:00
parent 5ce2a5f1a3
commit cf81290ae7
7 changed files with 114 additions and 49 deletions

View File

@@ -2,7 +2,9 @@
*/node_modules
node_modules
Dockerfile
.*
*.pyc
*.pyo
*.log
*/.*
!.env
!.env.production

View File

@@ -1,15 +1,23 @@
# syntax=docker/dockerfile:1.7
FROM quay.io/0voice/node:lts-alpine AS frontend
RUN npm install pnpm -g
WORKDIR /app
RUN npm install -g pnpm@8
COPY package.json pnpm-lock.yaml .npmrc ./
RUN pnpm install --frozen-lockfile
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build-only
FROM quay.io/0voice/nginx:1.25.4 AS web
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=frontend /app/dist/ /usr/share/nginx/html/
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]