diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 380c9b903..b14f5ea02 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -50,7 +50,8 @@ jobs: npm install --global yarn yarn --frozen-lockfile --prefer-offline || yarn node --max-old-space-size=4096 ./node_modules/.bin/vite build - cp -r dist ../server/resource/ + mkdir -p ../server/resource/build + cp -r dist/* ../server/resource/build/ - name: Get version id: version diff --git a/Dockerfile b/Dockerfile index c68da3d04..c188a0eb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN #apk add upx RUN go mod tidy RUN sh get_arch.sh RUN echo "Hello, my CPU architecture is $(uname -m)" -RUN cp -r /app/web/build /app/server/resource/ RUN go env;CGO_ENABLED=0 GOOS=linux GOARCH=$ARCH go build -ldflags '-s -w' -o next-terminal main.go RUN #upx next-terminal