2022-04-28 19:12:07 +02:00
|
|
|
FROM golang:1.18-alpine3.15 AS building
|
2020-09-30 05:05:34 +02:00
|
|
|
|
2022-04-28 19:12:07 +02:00
|
|
|
COPY . /building
|
|
|
|
WORKDIR /building
|
2020-09-30 05:05:34 +02:00
|
|
|
|
2022-04-28 19:12:07 +02:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
git \
|
|
|
|
&& export GO111MODULE=on \
|
|
|
|
&& env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o ./bin/frps ./cmd/frps
|
2020-09-30 05:05:34 +02:00
|
|
|
|
2022-04-28 19:12:07 +02:00
|
|
|
FROM alpine:3.15
|
|
|
|
LABEL maintainer="i@muir.fun"
|
2020-09-30 05:05:34 +02:00
|
|
|
|
2022-04-28 19:12:07 +02:00
|
|
|
COPY --from=building /building/bin/frps /usr/bin/frps
|
2020-09-23 08:54:40 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/frps"]
|
2022-04-28 19:12:07 +02:00
|
|
|
CMD ["-h"]
|