This commit is contained in:
jiangyong27 2025-03-13 20:14:27 +08:00
parent 42ce30a033
commit 60da152f88
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
FROM registry.cn-shanghai.aliyuncs.com/devcon/godev:v1.0.19
#ADD . /app/src
WORKDIR /app/src
#WORKDIR /app/src
RUN mkdir -p /app/bin /app/log
@ -8,6 +8,11 @@ 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