chore: added seperated Dockerfile for client and server

This commit is contained in:
max 2019-07-10 18:11:58 +08:00
parent 95444ea46b
commit b33e7deed3
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
FROM golang AS builder
WORKDIR /frp
COPY . .
RUN make
FROM golang
WORKDIR /
COPY --from=builder /frp/bin/frpc /usr/local/bin/frpc
COPY --from=builder /frp/conf/frpc.ini /etc/frpc.ini
CMD ["frpc", "--config", "/etc/frpc.ini"]

View File

@ -0,0 +1,11 @@
FROM golang AS builder
WORKDIR /frp
COPY . .
RUN make
FROM golang
WORKDIR /
COPY --from=builder /frp/bin/frps /usr/local/bin/frps
COPY --from=builder /frp/conf/frps.ini /etc/frps.ini
EXPOSE 7000 7500
CMD ["frps", "--config", "/etc/frps.ini"]