diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b9897bf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +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"] \ No newline at end of file