修改dockerfile
This commit is contained in:
@@ -7,11 +7,11 @@ COPY requirements.txt .
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# 复制应用代码
|
# 复制应用代码
|
||||||
COPY src/ ./src/
|
# COPY src/ ./src/
|
||||||
COPY run.py .
|
COPY . .
|
||||||
|
|
||||||
# 暴露端口
|
# 暴露端口
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# 启动命令
|
# 启动命令
|
||||||
CMD ["python", "run.py"]
|
CMD ["python", "app.py"]
|
||||||
Reference in New Issue
Block a user