Preload requirements file

Due tot he fact version pinning is in use, there's no point in reinstalling deps each build.

Instead copy everything after dep install to increase caching
This commit is contained in:
Jack
2024-05-11 12:47:38 +08:00
committed by GitHub
parent 5d0030bc61
commit 10ce4890d2

View File

@@ -18,8 +18,8 @@ ENV IS_IN_DOCKER 1
WORKDIR /app
COPY . .
COPY ./docker/requirements.txt ./docker/requirements.txt
RUN pip install --no-cache-dir -r docker/requirements.txt
COPY . .
CMD ["python", "main.py"]