20 lines
397 B
Docker
20 lines
397 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pyproject.toml ./
|
|
RUN pip install --upgrade pip && pip install -e .
|
|
|
|
COPY app/ ./app/
|
|
COPY frontend/ ./frontend/
|
|
COPY main.py ./
|
|
COPY migrations/ ./migrations/
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|