From e6b26e60897ad3d3d9b15da152b5f25a6566fd24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=BF=E9=98=B3?= <997485446@qq.com> Date: Mon, 29 Jan 2024 14:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'DockerfileSlim'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DockerfileSlim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 DockerfileSlim diff --git a/DockerfileSlim b/DockerfileSlim new file mode 100644 index 0000000..3983f44 --- /dev/null +++ b/DockerfileSlim @@ -0,0 +1,8 @@ +FROM nginx + +COPY ./dist/ /usr/share/nginx/html/public/ +COPY ./public/favicon.ico /usr/share/nginx/html/public/favicon.ico +COPY ./docs/conf/nginx.conf /etc/nginx/nginx.conf +COPY ./docs/conf/conf.d/ /etc/nginx/conf.d/ + +ENTRYPOINT ["nginx","-g","daemon off;"] \ No newline at end of file