File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 run : |
2020 git config --global user.email "actions@github.com"
2121 git config --global user.name "GitHub Actions"
22- # Replace 'urstark/editguardian' with your exact Hugging Face Space name if different
23- git remote add space https://urstark:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/urstark/editguardian
22+ git remote add space https://urstark:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/urstark/GuardianBot
2423 git push --force space HEAD:main
Original file line number Diff line number Diff line change 11FROM python:3.10-slim
22
3+ # Create non-root user with UID 1000 to comply with Hugging Face Spaces security constraints
4+ RUN useradd -m -u 1000 user
5+ USER user
6+ ENV PATH="/home/user/.local/bin:$PATH"
7+
38WORKDIR /app
49
5- COPY requirements.txt .
6- RUN pip install --no-cache-dir -r requirements.txt
10+ COPY --chown=user ./ requirements.txt requirements.txt
11+ RUN pip install --no-cache-dir --upgrade - r requirements.txt
712
8- COPY . .
13+ COPY --chown=user . /app
914
1015EXPOSE 7860
1116
12- CMD ["python" , "editguardian /main.py" ]
17+ CMD ["python" , "Guardian /main.py" ]
You can’t perform that action at this time.
0 commit comments