development.dockerfile 421 B

123456789101112131415161718
  1. FROM python:3.8-slim
  2. RUN apt update && apt install curl build-essential -y
  3. # We use Poetry for dependency management
  4. RUN curl -sSL https://install.python-poetry.org | python3 - && \
  5. cd /usr/local/bin && \
  6. ln -s ~/.local/bin/poetry && \
  7. poetry config virtualenvs.create false
  8. WORKDIR /app
  9. COPY . .
  10. RUN poetry install --all-extras
  11. RUN pip install latex2mathml
  12. CMD python3 -m debugpy --listen 5678 main.py