Update Dockerfile-for-frp

This commit is contained in:
ai773203918 2024-11-15 19:39:38 +08:00 committed by GitHub
parent e7f7498c6f
commit 2e89b81623
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,8 +4,9 @@ WORKDIR /building
RUN make frps && make frpc
FROM alpine:3
WORKDIR /frp
RUN apk add --no-cache tzdata
COPY --from=building /building/bin/frps /frp/frps
COPY --from=building /building/bin/frpc /frp/frpc
ENV mode=frps
ENTRYPOINT ["/frp/$mode -c /frp/$mode.toml"]
CMD ["/bin/sh", "-c", "./$mode -c $mode.toml"]