Spaces:
Sleeping
Sleeping
File size: 327 Bytes
0b11ef7 9ad7330 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.11
RUN useradd -m -u 1000 user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
USER user
WORKDIR $HOME/app
RUN --mount=type=secret,id=URL,mode=0444,required=true \
git clone $(cat /run/secrets/URL) .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
CMD ["python", "backend/main.py"] |