This commit is contained in:
@ -9,7 +9,6 @@ WORKDIR /home/coder
|
|||||||
VOLUME [ "/home/coder/project", "/root/.ssh", "/root/.local", "/root/.config" ]
|
VOLUME [ "/home/coder/project", "/root/.ssh", "/root/.local", "/root/.config" ]
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/bin/
|
COPY entrypoint.sh /usr/bin/
|
||||||
RUN chmod 777 /usr/bin/entrypoint.sh
|
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
# 运行时可以添加代理
|
# 运行时可以添加代理
|
||||||
@ -36,7 +35,8 @@ RUN echo "安装基础工具与配置文件" && \
|
|||||||
apt-get install -y openssh-server && \
|
apt-get install -y openssh-server && \
|
||||||
# 创建日志文件
|
# 创建日志文件
|
||||||
touch /tmp/log/info.log && \
|
touch /tmp/log/info.log && \
|
||||||
chmod 777 /tmp/log/info.log
|
chmod 777 /tmp/log/info.log && \
|
||||||
|
chmod 777 /usr/bin/entrypoint.sh
|
||||||
|
|
||||||
# 安装 node 环境
|
# 安装 node 环境
|
||||||
RUN echo "安装 node 环境" && \
|
RUN echo "安装 node 环境" && \
|
||||||
|
Reference in New Issue
Block a user