Set FastF1 cache location in dockerfile

This commit is contained in:
2024-09-23 16:50:35 +02:00
parent 30bf475000
commit 4a0eb5329c

View File

@ -1,10 +1,17 @@
# syntax=docker/dockerfile:1
FROM public.ecr.aws/docker/library/python:3.11.8-slim-bookworm
RUN apt-get update -y
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
EXPOSE 5000
ENV FASTF1_CACHE="/cache"
CMD ["python3", "-u", "-m", "flask", "--app", "formula10", "run", "--host", "0.0.0.0"]