10 lines
343 B
Docker
10 lines
343 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
COPY apps/api/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY apps/api .
|
|
COPY rf4_research ./rf4_research
|
|
EXPOSE 8000
|
|
CMD ["sh", "-c", "alembic upgrade head && python -m app.seed && uvicorn app.main:app --host 0.0.0.0 --port 8000"]
|