diff --git a/Dockerfile b/Dockerfile index 033254f..9c0ac1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 COPY requirements.txt . -RUN apt update && apt install -y gcc +RUN apt update && apt install -y gcc media-types # media-types for /etc/mime.types for static files RUN pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt FROM python:3.11-slim @@ -15,7 +15,7 @@ ENV PYTHONUNBUFFERED 1 RUN useradd --no-create-home --system user WORKDIR /app - +COPY --from=builder /etc/mime.types /etc/mime.types COPY --from=builder /app/wheels /wheels COPY --from=builder /app/requirements.txt .