tank/Dockerfile
2022-05-01 16:50:35 +08:00

32 lines
553 B
Docker

# use golang 1.17
FROM golang:1.17
# maintainer. Author's name and email.
MAINTAINER eyeblue "eyebluecn@126.com"
# work directory.
WORKDIR /data
# Copy this project to /data
COPY . /data
# in order to make docker stateless. Prepare a volumn
VOLUME /data/build/matter
# proxy
ENV GOPROXY=https://goproxy.cn
# Handle time-zone
ENV TZ=Asia/Shanghai
RUN apt-get install -y tzdata
# prepare the config file
RUN go build \
&& cp -r /data/tank /data/build
# use 6010 as default.
EXPOSE 6010
# tank as execute file.
ENTRYPOINT ["/data/build/tank"]