Create dockerfiles-for-frp

This commit is contained in:
ai773203918 2024-11-15 18:35:11 +08:00 committed by GitHub
parent 5da5d9b347
commit 3a0a4a5313
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,10 @@
FROM golang:1.23 AS building
COPY . /building
WORKDIR /building
RUN make frpc && make frpc
FROM alpine:3
RUN apk add --no-cache tzdata
COPY --from=building /building/bin/frps /frp/frps
COPY --from=building /building/bin/frpc /frp/frpc
ENTRYPOINT ["/frp/$mode -c /frp/$mode.toml"]