Dockerfile 506 B

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