mirror of https://github.com/go-gost/gost.git
20 lines
305 B
Docker
20 lines
305 B
Docker
FROM golang:1.23-alpine3.20 AS builder
|
|
|
|
RUN apk add --no-cache musl-dev git gcc
|
|
|
|
ADD . /src
|
|
|
|
WORKDIR /src
|
|
|
|
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"] |