From 3c56da0e8d121684076322c299cd84d61a98d191 Mon Sep 17 00:00:00 2001 From: yaha <1143990204@qq.com> Date: Tue, 6 Feb 2024 10:05:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 ++++++++ Dockerfile | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 Dockerfile diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1f985c3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM requarks/wiki:latest + +# 添加非root用户 'work' +RUN adduser --disabled-password --gecos '' work + +RUN chown -R work:work /wiki +# 切换到新用户 +USER work \ No newline at end of file