17 lines
381 B
Docker
17 lines
381 B
Docker
FROM python:3.14.0a3-slim
|
|
|
|
# Turns off buffering for easier container logging
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait /wait
|
|
|
|
# Install pip requirements
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
WORKDIR /
|
|
COPY . /
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD /wait; alembic upgrade head; uvicorn main:app --host 0.0.0.0 |