Dockerfile 314 B

123456789101112
  1. FROM golang:1.9.2
  2. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  3. RUN echo 'Asia/Shanghai' > /etc/timezone
  4. COPY sharetransmit /go/bin/
  5. COPY public /go/bin/public
  6. COPY templates /go/bin/templates
  7. RUN chmod +x /go/bin/sharetransmit
  8. WORKDIR /go/bin
  9. CMD ["/go/bin/sharetransmit"]
  10. EXPOSE 8006