Actualizar Dockerfile para copiar todos los archivos al contenedor antes de instalar dependencias
This commit is contained in:
@@ -2,9 +2,10 @@ FROM python:3.9-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY . .
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY script.py .
|
COPY script.py .
|
||||||
|
|
||||||
CMD ["python", "-u", "script.py"]
|
CMD ["python", "-u", "script.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user