Spaces:
Sleeping
Sleeping
version: 2.1 | |
jobs: | |
build-and-run: | |
docker: | |
- image: circulartextapp/spaceread | |
auth: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
steps: | |
- run: | |
name: Create new user | |
command: useradd -m -u 1000 user | |
- run: | |
name: Switch to new user | |
command: su - user | |
- run: | |
name: Install dependencies | |
command: pip install -r requirements.txt | |
- run: | |
name: Copy entrypoint script | |
command: cp entrypoint.sh /usr/local/bin/entrypoint.sh | |
- run: | |
name: Make entrypoint script executable | |
command: chmod +x /usr/local/bin/entrypoint.sh | |
- run: | |
name: Start the application | |
command: uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload |