build(dockerfile): 移除多余的 COPY 指令
- 删除了将当前目录内容复制到 /app 目录的 COPY指令 - 优化了 Dockerfile 构建流程,减少镜像大小
This commit is contained in:
parent
f62672d779
commit
b122567c12
@ -1,5 +1,5 @@
|
||||
FROM python:latest
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN python setup.py install
|
||||
|
||||
Loading…
Reference in New Issue
Block a user