This commit is contained in:
@ -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", "."]
|
||||
|
||||
|
Reference in New Issue
Block a user