From b9f153836dc306c4adf6c14ab1c83198fea19e58 Mon Sep 17 00:00:00 2001 From: coward Date: Tue, 4 Jun 2024 10:45:38 +0800 Subject: [PATCH] :art: --- Dockerfile | 4 ++-- web-src/app/static.go | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 web-src/app/static.go diff --git a/Dockerfile b/Dockerfile index 912c516..e3cf51d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ FROM node:18-alpine as build-stage WORKDIR front -COPY . . +COPY ./web-src . WORKDIR web-src RUN ls -lh RUN corepack enable RUN corepack prepare pnpm@8.6.10 --activate RUN npm config set registry https://registry.npmmirror.com -RUN pnpm install --frozen-lockfile +RUN pnpm install RUN pnpm build diff --git a/web-src/app/static.go b/web-src/app/static.go deleted file mode 100644 index 3b49155..0000000 --- a/web-src/app/static.go +++ /dev/null @@ -1,6 +0,0 @@ -package web - -import "embed" - -//go:embed index.html logo.svg favicon.ico platform-config.json public/platform-config.json static assets -var Static embed.FS