diff --git a/.DS_Store b/.DS_Store index e58409d..ddee0e9 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..52e77c8 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Deploy FastAPI Application + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: build + run: | + docker build -t wanlanda_website . + - name: run + run: | + docker rm -f wanlanda_website || true + docker run -d -p 8020:8020 --name wanlanda_website wanlanda_website + diff --git a/Dockerfile b/Dockerfile index 890ccf2..e3248f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY ./app /code/app -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8020"] \ No newline at end of file diff --git a/app/.DS_Store b/app/.DS_Store index 7d2ad39..cf09f97 100644 Binary files a/app/.DS_Store and b/app/.DS_Store differ diff --git a/static/.DS_Store b/static/.DS_Store index d27fe34..8ecf661 100644 Binary files a/static/.DS_Store and b/static/.DS_Store differ