enterprise/Dockerfile

25 lines
610 B
Docker
Raw Normal View History

2025-03-13 20:03:33 +08:00
FROM registry.cn-shanghai.aliyuncs.com/devcon/godev:v1.0.19
2025-03-13 20:22:11 +08:00
ADD . /app/src
WORKDIR /app/src
2023-08-04 11:13:41 +08:00
RUN mkdir -p /app/bin /app/log
2025-03-13 20:11:57 +08:00
RUN export GOROOT=/usr/local/go1.23.1 && \
export GOPROXY=https://goproxy.cn && \
export GOPRIVATE=gitlab.batiao8.com && \
export PATH=$PATH:$GOROOT/bin && \
2025-03-13 20:14:27 +08:00
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 && \
2025-03-13 20:11:57 +08:00
cp -r conf /app && \
cp start.sh /app && \
chmod +x /app/start.sh
2025-03-13 20:26:44 +08:00
2023-08-04 11:13:41 +08:00
WORKDIR /app
2023-08-04 11:30:40 +08:00
EXPOSE 9283
2023-08-04 11:13:41 +08:00
CMD ["/app/start.sh"]