Dockerfile 420 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-recommend python3 python3-pip python3-venv ca-certificates
  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 pip3 install --no-cache-dir -r requirements.txt
  10. COPY . .
  11. EXPOSE 8888
  12. CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8888", "app.app"]