Spaces:
Runtime error
Runtime error
Nguyen Quang Truong commited on
Commit ·
47908a3
1
Parent(s): 279bedc
[Uploads]
Browse filesFiles changed (3)
- .github/workflows/CICD_Huggingface.ymlAdded+20
- DockerfileAdded+32
- README.md+8-1
1234567891011121314151617181920name: Sync to Hugging Face hubon: push: branches: [main]
# to run this workflow manually from the Actions tab workflow_dispatch:
jobs: sync-to-hub: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 lfs: true - name: Push to hub env: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: git push --force https://nqtruong:$HF_TOKEN@huggingface.co/spaces/nqtruong/Job_Knowledge_Graph main1234567891011121314151617181920212223242526272829303132# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker# you will also find guides on how best to write your DockerfileFROM python:latest
RUN apt-get update
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Set up a new user named "user" with user ID 1000RUN useradd -m -u 1000 user
# Switch to the "user" userUSER user
# Set home to the user's home directoryENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directoryWORKDIR $HOME/app
# Try and run pip command after setting the user with `USER user` to avoid permission issues with PythonRUN pip install --no-cache-dir --upgrade pip
# Copy the current directory contents into the container at $HOME/app setting the owner to the userCOPY --chown=user . $HOME/app
CMD ["chainlit", "run", "app.py", "--port", "7860"]1# QA_KnowledgeGraph12345678---title: Job Knowledge Graphemoji: 🐨colorFrom: redcolorTo: purplesdk: dockerpinned: false---
.github/workflows/CICD_Huggingface.ymlAdded+20
DockerfileAdded+32
README.md+8-1