复制项目内容
This commit is contained in:
@@ -9,9 +9,7 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
# 设置时区
|
||||
TZ=Asia/Shanghai \
|
||||
# 设置pip镜像地址,加快安装速度
|
||||
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple \
|
||||
# 消除警告
|
||||
GREP_OPTIONS=""
|
||||
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
# 安装language-pack-en和openssh-server
|
||||
RUN apt update && \
|
||||
@@ -26,7 +24,7 @@ RUN mkdir /var/run/sshd && \
|
||||
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
|
||||
# 将当前目录内容复制到容器的/app内
|
||||
#COPY . /app
|
||||
COPY . /app
|
||||
|
||||
# 暴露22端口
|
||||
EXPOSE 22
|
||||
|
||||
Reference in New Issue
Block a user