From 48a58759da06ed4e70748c3e843ad4130f3eb96c Mon Sep 17 00:00:00 2001 From: coward Date: Fri, 27 Dec 2024 15:16:44 +0800 Subject: [PATCH] =?UTF-8?q?:whale:=E4=BF=AE=E6=94=B9dockerfile=E5=9C=A8?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=97=B6=E5=AD=98=E5=9C=A8=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e29b1ba..a0d34b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ # 打包前端 -FROM node:18-alpine as build-front +FROM node:18-alpine AS build-front WORKDIR front COPY . . -WORKDIR web +WORKDIR ./web RUN corepack enable RUN corepack prepare pnpm@8.6.10 --activate @@ -13,7 +13,7 @@ RUN pnpm build RUN ls -lh && pwd # 前后端集成打包 -FROM golang:alpine as build-backend +FROM golang:alpine AS build-backend RUN apk add upx WORKDIR /build