修复「接入网关」无法使用的问题 fixed #207 #218

This commit is contained in:
dushixiang
2022-01-23 22:42:47 +08:00
parent a1a9ca2596
commit 809118f3e9
15 changed files with 83 additions and 53 deletions

View File

@ -13,6 +13,7 @@ RUN apk add gcc g++
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=1 GOOS=linux GOARCH=$ARCH go build -a -ldflags '-linkmode external -extldflags "-static"' -o next-terminal main.go
FROM alpine:latest
@ -34,7 +35,7 @@ RUN touch config.yml
COPY --from=builder /app/next-terminal ./
COPY --from=builder /app/LICENSE ./
COPY --from=builder /app/web/build ./web/build
#COPY --from=builder /app/web/build ./web/build
EXPOSE $SERVER_PORT $SSHD_PORT