Dockerfile 349 B

123456789101112131415
  1. FROM ccr.ccs.tencentyun.com/aionnect/public:3.11
  2. RUN mkdir -p /opt/hello-go /log/error /log/warn /log/info
  3. WORKDIR /opt/hello-go
  4. COPY ./bin/ ./
  5. RUN chmod +x ./hello-go
  6. ENV GIN_MODE release
  7. ENV PATH $PATH:/sbin:/opt/hello-go
  8. ENV LANG zh_CN.UTF-8
  9. EXPOSE 8080 10080
  10. ENTRYPOINT ["tini", "--"]
  11. CMD ["hello-go", "-c", "config", "2>&1", "&"]