reduce docker image size (#2014)

This commit is contained in:
lonwern 2020-09-30 11:05:34 +08:00 committed by GitHub
parent 0f8040b875
commit cc003a2570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -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"]

View File

@ -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"]