15 lines
284 B
Docker
15 lines
284 B
Docker
FROM python:3.12.8-slim-bullseye
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install libpq-dev -y
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
EXPOSE 8000
|
|
|
|
# Start the FastAPI server
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|