From 4a0eb5329c5d958e86918668ce207dd28e8678a6 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 23 Sep 2024 16:50:35 +0200 Subject: [PATCH] Set FastF1 cache location in dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8d95871..8be1772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]