Files
ev-charging-backend/Dockerfile
2026-04-18 05:59:31 +09:00

16 lines
364 B
Docker

FROM python:3.11-slim
WORKDIR /code
# 시스템 패키지
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libpq-dev && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app /code/app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]