mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
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
|
FROM alpine:3.12.0
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ADD bin/frpc /usr/bin
|
COPY --from=temp /tmp/frpc /usr/bin
|
||||||
|
|
||||||
RUN chmod -R 777 /usr/bin/frpc
|
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/frpc"]
|
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
|
FROM alpine:3.12.0
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ADD bin/frps /usr/bin
|
COPY --from=temp /tmp/frps /usr/bin
|
||||||
|
|
||||||
RUN chmod -R 777 /usr/bin/frps
|
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/frps"]
|
ENTRYPOINT ["/usr/bin/frps"]
|
||||||
|
Loading…
Reference in New Issue
Block a user