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.
22 lines
321 B
22 lines
321 B
FROM golang:1.22-alpine AS builder
|
|
|
|
RUN apk add --no-cache musl-dev git gcc
|
|
|
|
ADD . /src
|
|
|
|
WORKDIR /src
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
RUN cd cmd/gost && go env && go build
|
|
|
|
FROM alpine:3.20
|
|
|
|
# add iptables for tun/tap
|
|
RUN apk add --no-cache iptables
|
|
|
|
WORKDIR /bin/
|
|
|
|
COPY --from=builder /src/cmd/gost/gost .
|
|
|
|
ENTRYPOINT ["/bin/gost"]
|
|
|