mirror of https://github.com/fatedier/frp.git
reduce docker image size (#2014)
This commit is contained in:
parent
0f8040b875
commit
cc003a2570
|
@ -1,9 +1,14 @@
|
|||
FROM alpine:3.12.0 AS temp
|
||||
|
||||
COPY bin/frpc /tmp
|
||||
|
||||
RUN chmod -R 777 /tmp/frpc
|
||||
|
||||
|
||||
FROM alpine:3.12.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ADD bin/frpc /usr/bin
|
||||
|
||||
RUN chmod -R 777 /usr/bin/frpc
|
||||
COPY --from=temp /tmp/frpc /usr/bin
|
||||
|
||||
ENTRYPOINT ["/usr/bin/frpc"]
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
FROM alpine:3.12.0 AS temp
|
||||
|
||||
COPY bin/frps /tmp
|
||||
|
||||
RUN chmod -R 777 /tmp/frps
|
||||
|
||||
|
||||
FROM alpine:3.12.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ADD bin/frps /usr/bin
|
||||
|
||||
RUN chmod -R 777 /usr/bin/frps
|
||||
COPY --from=temp /tmp/frps /usr/bin
|
||||
|
||||
ENTRYPOINT ["/usr/bin/frps"]
|
||||
|
|
Loading…
Reference in New Issue