This commit is contained in:
parent
f711341798
commit
70ecfd8d2f
20
.gitea/workflows/publish.yml
Normal file
20
.gitea/workflows/publish.yml
Normal file
@ -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
|
||||||
|
|
||||||
@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|||||||
|
|
||||||
COPY ./app /code/app
|
COPY ./app /code/app
|
||||||
|
|
||||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8020"]
|
||||||
BIN
app/.DS_Store
vendored
BIN
app/.DS_Store
vendored
Binary file not shown.
BIN
static/.DS_Store
vendored
BIN
static/.DS_Store
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user