Spaces:
Sleeping
Sleeping
File size: 854 Bytes
396c1f3 |
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 27 28 |
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 |