godev4
This commit is contained in:
parent
42ce30a033
commit
60da152f88
|
@ -1,6 +1,6 @@
|
||||||
FROM registry.cn-shanghai.aliyuncs.com/devcon/godev:v1.0.19
|
FROM registry.cn-shanghai.aliyuncs.com/devcon/godev:v1.0.19
|
||||||
#ADD . /app/src
|
#ADD . /app/src
|
||||||
WORKDIR /app/src
|
#WORKDIR /app/src
|
||||||
|
|
||||||
RUN mkdir -p /app/bin /app/log
|
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 GOPROXY=https://goproxy.cn && \
|
||||||
export GOPRIVATE=gitlab.batiao8.com && \
|
export GOPRIVATE=gitlab.batiao8.com && \
|
||||||
export PATH=$PATH:$GOROOT/bin && \
|
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 -r conf /app && \
|
||||||
cp start.sh /app && \
|
cp start.sh /app && \
|
||||||
chmod +x /app/start.sh
|
chmod +x /app/start.sh
|
||||||
|
|
Loading…
Reference in New Issue