From b81011d362ac12575d5684ec0ab73acdaa9da349 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Fri, 6 Jun 2025 10:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 5 ----- Dockerfile | 23 ++++------------------- DockerfileTest | 4 ++++ 3 files changed, 8 insertions(+), 24 deletions(-) delete mode 100644 .dockerignore create mode 100644 DockerfileTest diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index c8e50a2..0000000 --- a/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!docker/* -!healthcheck.sh -!docker_config.json -!filebrowser \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 40a91a0..a31a8c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,4 @@ -FROM alpine:latest -RUN apk --update add ca-certificates \ - mailcap \ - curl \ - jq - -COPY healthcheck.sh /healthcheck.sh -RUN chmod +x /healthcheck.sh # Make the script executable - -HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \ - CMD /healthcheck.sh || exit 1 - -VOLUME /srv -EXPOSE 80 - -COPY docker_config.json /.filebrowser.json -COPY filebrowser /filebrowser - -ENTRYPOINT [ "/filebrowser" ] \ No newline at end of file +FROM testhub.szjixun.cn:9043/public/self-alpine +ENV TZ Asia/Shanghai +COPY build/app /root +ENTRYPOINT [ "chmod 777 /root/app && /root/app" ] \ No newline at end of file diff --git a/DockerfileTest b/DockerfileTest new file mode 100644 index 0000000..a31a8c2 --- /dev/null +++ b/DockerfileTest @@ -0,0 +1,4 @@ +FROM testhub.szjixun.cn:9043/public/self-alpine +ENV TZ Asia/Shanghai +COPY build/app /root +ENTRYPOINT [ "chmod 777 /root/app && /root/app" ] \ No newline at end of file