Skip to content

Commit

Permalink
1638
Browse files Browse the repository at this point in the history
  • Loading branch information
nobug committed Dec 23, 2023
1 parent fa845cf commit b0e0d2a
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
FROM fatedier/frps:v0.53.2 as origin-frps

FROM nginx:1
COPY --from=origin-frps /usr/bin/frps /usr/bin/frps

COPY ./src/nginx/templates /etc/nginx/templates
COPY ./src/html /usr/share/nginx/html

COPY ./src/dl-frpc.sh /dl-frpc.sh
COPY --from=fatedier/frps:v0.53.2 /usr/bin/frps /usr/bin/frps
COPY rootfs/ /

RUN set -xe \
&& mv /docker-entrypoint.sh /docker-entrypoint-nginx.sh \
Expand All @@ -15,8 +9,6 @@ RUN set -xe \
&& bash /dl-frpc.sh && rm /dl-frpc.sh \
&& apt-get remove --purge --auto-remove -y unzip zip wget && rm -rf /var/lib/apt/lists/* && apt-get purge -y --auto-remove

COPY ./src/nginx/templates /etc/nginx/templates
COPY ./src/entry.sh /entry.sh
# STOPSIGNAL SIGINT
ENTRYPOINT ["/entry.sh"]
EXPOSE 80 7000
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b0e0d2a

Please sign in to comment.