From 821d127d03b7d85217f18cedbc6bd6c4a6d3c32b Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:03:11 +0300 Subject: [PATCH] Dockerfile: install /etc/mime.types for correct content types for static files --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 .