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

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