docker fix
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
*/node_modules
|
||||
node_modules
|
||||
Dockerfile
|
||||
.*
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.log
|
||||
*/.*
|
||||
!.env
|
||||
!.env.production
|
||||
|
||||
@@ -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;"]
|
||||
Reference in New Issue
Block a user