voucher/Dockerfile

21 lines
416 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM registry.cn-chengdu.aliyuncs.com/pkgtool/build:1.23.6 AS builder
COPY . /src
WORKDIR /src
RUN make build
FROM registry.cn-chengdu.aliyuncs.com/pkgtool/work:v0.0.1
COPY --from=builder /src/bin /app
#删除config文件线上是通过挂载进来的
#RUN rm -rf /app/configs/config.yaml
WORKDIR /app
RUN mkdir /app/cert
VOLUME /data/conf
ENV ROCKETMQ_GO_LOG_LEVEL=error TZ=Asia/Shanghai
CMD ["./server"]