FROM ccr.ccs.tencentyun.com/wanpinghui/alpine RUN mkdir -p /opt/go-example /log WORKDIR /opt/go-example COPY bin ./ RUN chmod +x ./go-example EXPOSE 8080 EXPOSE 50051 ENV PATH $PATH:/sbin:/opt/go-example ENTRYPOINT ["tini", "--"] CMD ["go-example", ">>", "/log/go-example.log", "2>&1", "&"]