测试dockerfile

pull/23/head
taoshihan1991 4 years ago
parent eb76437e85
commit 2d98c84135

@ -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"]
Loading…
Cancel
Save