cache pip downloads

This commit is contained in:
deflax 2024-02-27 16:56:55 +02:00
parent 6a4682edea
commit 0d7615558e

View file

@ -1,3 +1,4 @@
# syntax = docker/dockerfile:1.6
FROM python:3-bookworm
# install dependencies
@ -16,7 +17,8 @@ WORKDIR $APP_HOME
# copy project
COPY . $APP_HOME
RUN pip3 install -r requirements.txt
RUN --mount=type=cache,target=/root/.cache \
pip3 install -r requirements.txt
EXPOSE 8080