FROM ubuntu:24.04 LABEL authors="nikita.babich" WORKDIR /app RUN apt-get update RUN apt-get install -y --no-install-recommends python3 python3-pip python3-venv ca-certificates python3-full RUN rm -rf /var/lib/apt/lists/ RUN ln -sf /usr/bin/python3 /usr/local/bin/python COPY requirements.txt . RUN python3 -m venv .venv RUN . .venv/bin/activate RUN .venv/bin/pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 8888 CMD [".venv/bin/gunicorn", "-w", "2", "-b", "0.0.0.0:8888", "app.app:app"]