File size: 637 Bytes
45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 45a7fc9 360bd67 | 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 30 31 | # Start light
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# --- CACHE BUSTER ---
# Changing this line forces Docker to ignore the cache and re-install everything
ENV CACHEBUSTER=2026-02-07
# Copy requirements
COPY requirements.txt requirements.txt
# Install dependencies (Force upgrade everything)
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade -r requirements.txt
# Copy the app
COPY . .
# Create user (Security)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Expose port
EXPOSE 7860
# Run it
CMD ["python", "app.py"] |