Commit bf307dcc authored by nanahira's avatar nanahira

dockerfile

parent eec9875a
Pipeline #4652 failed with stages
in 26 seconds
...@@ -8,7 +8,9 @@ WORKDIR /src ...@@ -8,7 +8,9 @@ WORKDIR /src
ENV GO111MODULE=on ENV GO111MODULE=on
RUN cd cmd/gost && go env && go build -v RUN cd cmd/gost && \
&& go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct \
&& go build -v
FROM alpine:latest FROM alpine:latest
...@@ -17,3 +19,5 @@ WORKDIR /bin/ ...@@ -17,3 +19,5 @@ WORKDIR /bin/
COPY --from=builder /src/cmd/gost/gost . COPY --from=builder /src/cmd/gost/gost .
ENTRYPOINT ["/bin/gost"] ENTRYPOINT ["/bin/gost"]
CMD ["-C", "/etc/gost/gost.json"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment