pref: update Dockerfile
Some checks failed
CI / deploy (push) Failing after 16s

This commit is contained in:
thehrz 2024-11-09 18:52:27 +08:00
parent af0a1d7da2
commit 55ecdfda0d
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -3,14 +3,15 @@ FROM node:20-alpine AS frontend-stage
WORKDIR /app
RUN corepack enable
COPY frontend/package.json frontend/pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
pnpm install --frozen-lockfile
# COPY frontend/package.json frontend/pnpm-lock.yaml ./
# RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
# pnpm install --frozen-lockfile
RUN pnpm install
COPY frontend/ .
COPY frontend .
RUN pnpm build
FROM golang:1.23 as build-stage
FROM golang:1.23 AS build-stage
WORKDIR /app
ENV GOPROXY https://goproxy.cn,direct