更新 Dockerfile
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
mol
2024-02-24 03:40:44 +00:00
parent 3cd46d2c3e
commit 58c094793d

View File

@ -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", "."]