Skip to content

fix dockerfile

fix dockerfile #4

Workflow file for this run

name: Generate page docs
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: |
cp .env.dist .env
docker-compose build
- name: Run FastAPI in Docker
run: |
docker-compose up -d
sleep 5
- name: Fetch /docs page
run: |
docker-compose exec backend curl http://0.0.0.0:8000/api/docs -o index.html
- name: Commit index.html
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '<>'
git add index.html
git commit -m "Update docs page" || exit 0
git push