Files
digiserver/Dockerfile
2025-05-18 23:24:17 +03:00

17 lines
378 B
Docker

FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
libreoffice poppler-utils ffmpeg \
libffi-dev libssl-dev g++ curl libjpeg-dev zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
COPY . /app
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install gunicorn
EXPOSE 5000
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]