File size: 631 Bytes
511fc24 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | FROM python:3.11-slim-bookworm
ENV PYTHONUNBUFFERED=1
ENV TZ=Asia/Kolkata
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential tzdata libssl-dev libffi-dev && \
ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && \
echo "$TZ" > /etc/timezone && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -U pip
WORKDIR /app
COPY requirements.txt .
RUN pip install -U -r requirements.txt
COPY main.py .
COPY fileManager.py .
# Storage dirs
RUN mkdir -p fl
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|