feat dockerfile 瘦身加速构建
This commit is contained in:
parent
6b0ca5c019
commit
d2297b9f1f
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/main-client
|
||||||
|
#通过名称引用
|
||||||
|
COPY ./build/app ./bin/mainServer
|
||||||
|
COPY ./conf/ /app/conf/
|
||||||
|
COPY ./conf/ ./conf/
|
||||||
|
|
||||||
|
WORKDIR /app/main-client/bin
|
||||||
|
CMD ["./mainServer"]
|
Loading…
Reference in New Issue
Block a user