frp/dockerfiles/Dockerfile-for-frp

13 lines
310 B
Plaintext
Raw Normal View History

2024-11-15 18:35:11 +08:00
FROM golang:1.23 AS building
COPY . /building
WORKDIR /building
2024-11-15 18:47:41 +08:00
RUN make frps && make frpc
2024-11-15 18:35:11 +08:00
FROM alpine:3
2024-11-15 19:39:38 +08:00
WORKDIR /frp
2024-11-15 18:35:11 +08:00
RUN apk add --no-cache tzdata
COPY --from=building /building/bin/frps /frp/frps
COPY --from=building /building/bin/frpc /frp/frpc
2024-11-15 19:32:01 +08:00
ENV mode=frps
2024-11-15 19:39:38 +08:00
CMD ["/bin/sh", "-c", "./$mode -c $mode.toml"]