mirror of
https://github.com/fatedier/frp.git
synced 2025-07-29 09:18:11 +00:00
reduce docker image size (#2014)
This commit is contained in:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user