From 6aa9a5e6c820afa24f449c2c9f6fd1d19617731f Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Sat, 11 Nov 2023 03:25:43 +0100 Subject: [PATCH] improve a bit more with design and usablility --- service/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/Dockerfile b/service/Dockerfile index b43a1c8..51f5f5c 100644 --- a/service/Dockerfile +++ b/service/Dockerfile @@ -1,5 +1,5 @@ # Use an official Python runtime as a parent image -FROM python:3.11 +FROM python:3.11-bookworm ENV PYTHONUNBUFFERED 1 USER root @@ -20,6 +20,7 @@ RUN pip3 config list RUN pip3 install uwsgi RUN --mount=type=cache,target=/root/.cache/pip pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu RUN --mount=type=cache,target=/root/.cache/pip pip3 install --no-cache-dir -r requirements.prod +RUN apt-get update && apt-get install -y sqlite3 RUN mkdir /.cache RUN chmod 777 /.cache