diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f652704 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.11-slim + +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 + +WORKDIR /app +RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* +RUN update-ca-certificates +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . +EXPOSE 8000 + + +CMD ["gunicorn", "--bind", "0.0.0.0:8000", "main:app"] \ No newline at end of file