mirror of https://github.com/ginuerzh/gost
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.
21 lines
271 B
21 lines
271 B
FROM golang:1-alpine as builder
|
|
|
|
RUN apk add --no-cache musl-dev git gcc
|
|
|
|
ADD . /data
|
|
|
|
WORKDIR /data
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
RUN cd cmd/gost && go build
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /bin/
|
|
|
|
COPY --from=builder /data/cmd/gost/gost .
|
|
|
|
RUN /bin/gost -V
|
|
|
|
ENTRYPOINT ["/bin/gost"]
|