2024-08-07 22:46:46 -04:00
|
|
|
FROM python:3.12 as requirements-stage
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN pip install poetry
|
|
|
|
COPY ./pyproject.toml ./poetry.lock* /tmp/
|
|
|
|
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
|
|
|
|
|
|
|
|
FROM python:3.12
|
2024-08-08 00:10:01 -04:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=requirements-stage /tmp/requirements.txt /app/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
|
COPY kennel /app/kennel
|
|
|
|
COPY static /app/static
|
|
|
|
COPY templates /app/templates
|
2024-08-08 00:23:58 -04:00
|
|
|
CMD ["uvicorn", "kennel.main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"]
|