Spaces:
Sleeping
Sleeping
File size: 422 Bytes
7fc2c8c 6e61656 7fc2c8c | 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 | FROM python:3.9-slim
RUN useradd -m -u 1000 user
WORKDIR /app
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user backend/ .
RUN mkdir -p uploads && chown -R user:user /app
ENV PORT=7860
ENV HOME=/home/user
USER user
EXPOSE 7860
CMD ["python", "app.py"]
|