修改
This commit is contained in:
parent
ad27ef2943
commit
0a61abfd97
@ -4,7 +4,7 @@ LABEL stage=gobuilder
|
||||
ENV CGO_ENABLED 0
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
WORKDIR /build
|
||||
COPY chain-dci-server /app/chain-dci-server
|
||||
COPY micro-bundle-server /app/micro-bundle-server
|
||||
|
||||
#FROM 172.16.100.99:9006/alpine
|
||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
@ -17,6 +17,6 @@ COPY ./conf /app/conf
|
||||
ENV TZ Asia/Shanghai
|
||||
ENV MODE_ENV prod
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/chain-dci-server .
|
||||
COPY --from=builder /app/micro-bundle-server .
|
||||
EXPOSE 20117
|
||||
CMD ["/app/chain-dci-server"]
|
||||
CMD ["/app/micro-bundle-server"]
|
||||
|
14
DockerfileSlim
Normal file
14
DockerfileSlim
Normal file
@ -0,0 +1,14 @@
|
||||
FROM busybox:glibc
|
||||
|
||||
COPY ./docs/Shanghai /usr/share/zoneinfo/Asia/Shanghai
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
#ENV TZ Asia/Shanghai
|
||||
|
||||
WORKDIR /app/micro-bundle-fiee
|
||||
#通过名称引用
|
||||
COPY ./build/app ./bin/microBundle
|
||||
COPY ./conf/ /app/conf/
|
||||
COPY ./conf/ ./conf/
|
||||
|
||||
WORKDIR /app/micro-bundle-fiee/bin
|
||||
CMD ["./microBundleFiee"]
|
Loading…
Reference in New Issue
Block a user