15 lines
426 B
Docker
15 lines
426 B
Docker
FROM python:3.12-slim
|
|
|
|
RUN apt update && apt install --no-install-recommends -y git gifsicle libgl1
|
|
WORKDIR /code
|
|
RUN git clone https://gitea.typename.fr/mikael.capelle/advent-of-code .
|
|
RUN pip install -e .
|
|
|
|
RUN pip install poetry
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN poetry install
|
|
|
|
CMD ["poetry", "run", "uvicorn", "holt59.aoc.app:app", "--reload", "--proxy-headers", "--host", "0.0.0.0", "--port", "80", "--root-path", "/api/v1"]
|