- FROM golang:1.9.2
- RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- RUN echo 'Asia/Shanghai' > /etc/timezone
- COPY consoleapi /go/bin/
- RUN chmod +x /go/bin/consoleapi
- COPY console_api.yaml /go/bin/
- COPY yamls /go/bin/yamls
- COPY ext /go/bin/ext
- WORKDIR /go/bin
- CMD ["/go/bin/consoleapi"]
- EXPOSE 8099
|