From 58c094793d1501493a8b55b870ed294ea0dd941a Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 03:40:44 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3236109..dbcaa17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ EXPOSE 8080 EXPOSE 22 USER root -WORKDIR /home/coder +WORKDIR /root COPY entrypoint.sh /usr/bin/ RUN chmod 777 /usr/bin/entrypoint.sh -VOLUME [ "/home/coder/project", "/root/.ssh", "/root/.local", "/root/.config" ] +VOLUME [ "/root/project", "/root/.ssh", "/root/.local", "/root/.config" ] # 运行时可以添加代理 ARG PROXY @@ -94,7 +94,5 @@ RUN echo "配置 ssh" && \ # npm config set python python3 && \ # npm install --global code-server --unsafe-perm -USER coder - ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]