This commit is contained in:
jiangyong27 2025-03-13 20:07:19 +08:00
parent ad7119d169
commit 7f7cc19059
2 changed files with 2 additions and 13 deletions

View File

@ -4,18 +4,7 @@ WORKDIR /app/src
RUN mkdir -p /app/bin /app/log
RUN export GOROOT=/usr/local/go1.23.1 && \
export GOPROXY=https://goproxy.cn && \
export GOPRIVATE=gitlab.batiao8.com && \
export PATH=$PATH:$GOROOT/bin && \
go mod tidy && \
go build cmd/worker/enterprise-worker.go && \
go build cmd/server/enterprise-api.go && \
mv enterprise-api /app/bin && \
mv enterprise-worker /app/bin && \
cp -r conf /app && \
cp start.sh /app && \
chmod +x /app/start.sh
WORKDIR /app
EXPOSE 9283

2
go.mod
View File

@ -1,6 +1,6 @@
module enterprise
go 1.23.0
go 1.21.6
toolchain go1.23.2