core/Dockerfile

18 lines
336 B
Docker
Raw Normal View History

2025-02-10 16:10:13 +00:00
FROM python:slim
RUN apt-get update && apt-get install -y \
postgresql-client \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
2025-03-20 09:33:27 +00:00
EXPOSE 8000
2025-03-20 09:24:30 +00:00
2025-03-20 09:33:27 +00:00
CMD ["python", "-m", "granian", "main:app", "--interface", "asgi", "--host", "0.0.0.0", "--port", "8000"]