This commit is contained in:
parent
af0a1d7da2
commit
55ecdfda0d
11
Dockerfile
11
Dockerfile
@ -3,14 +3,15 @@ FROM node:20-alpine AS frontend-stage
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
# COPY frontend/package.json frontend/pnpm-lock.yaml ./
|
||||||
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
# RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
|
||||||
pnpm install --frozen-lockfile
|
# pnpm install --frozen-lockfile
|
||||||
|
RUN pnpm install
|
||||||
|
|
||||||
COPY frontend/ .
|
COPY frontend .
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
FROM golang:1.23 as build-stage
|
FROM golang:1.23 AS build-stage
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV GOPROXY https://goproxy.cn,direct
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user