tebrox / Dockerfile
understanding's picture
Update Dockerfile
c612731 verified
raw
history blame
449 Bytes
FROM python:3.11-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libsqlite3-dev \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . /app/
RUN mkdir -p ./downloads ./logs ./data && \
chmod -R 777 ./downloads ./logs ./data
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Expose web port for FastAPI
EXPOSE 7860
CMD ["python", "main.py"]