Skip to content

Commit

Permalink
reduce docker image size (fatedier#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
lonwern authored Sep 30, 2020
1 parent 0f8040b commit cc003a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions dockerfiles/Dockerfile-for-frpc
Original file line number Diff line number Diff line change
@@ -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"]
11 changes: 8 additions & 3 deletions dockerfiles/Dockerfile-for-frps
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit cc003a2

Please sign in to comment.