Dockerfile 304 B

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