You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-fly/Dockerfile

10 lines
225 B

FROM golang:alpine
RUN mkdir /app
COPY . /app
WORKDIR /app
ENV GOPROXY https://mirrors.aliyun.com/goproxy
VOLUME ["/app/config"]
RUN ["go","build","go-fly.go"]
RUN ["go-fly","install"]
EXPOSE 8081
CMD ["/app/go-fly","server"]