19 lines
386 B
Docker
19 lines
386 B
Docker
|
|
FROM python:3.11-slim
|
||
|
|
|
||
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||
|
|
PYTHONUNBUFFERED=1
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
COPY pyproject.toml README.md alembic.ini ./
|
||
|
|
COPY app ./app
|
||
|
|
COPY adapters ./adapters
|
||
|
|
COPY migrations ./migrations
|
||
|
|
|
||
|
|
RUN pip install --no-cache-dir pip setuptools wheel \
|
||
|
|
&& pip install --no-cache-dir -e .
|
||
|
|
|
||
|
|
EXPOSE 8000
|
||
|
|
|
||
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|