2026-04-25 18:36:00 +02:00
|
|
|
FROM python:3.12-slim
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-05-05 18:02:18 +02:00
|
|
|
RUN apt-get update -qq \
|
|
|
|
|
&& apt-get install -y -qq ffmpeg gosu \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
|
&& groupadd -r abc \
|
|
|
|
|
&& useradd -r -g abc abc
|
2026-04-25 18:36:00 +02:00
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
COPY . .
|
2026-05-05 18:02:18 +02:00
|
|
|
RUN chmod +x /app/entrypoint.sh
|
2026-04-25 18:36:00 +02:00
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
2026-05-05 18:02:18 +02:00
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
2026-04-25 18:36:00 +02:00
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
|