Update Dockerfile-for-frp
This commit is contained in:
parent
e7f7498c6f
commit
2e89b81623
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user