This commit is contained in:
leehk 2025-04-11 13:27:10 +08:00
parent d7f221b847
commit be3e486011
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pull image
run: |
docker pull ${{ env.IMAGE }}:latest --platform darwin/amd64 || true
docker pull ${{ env.IMAGE }}:latest --platform linux/amd64 || true
- name: Build image
run: |
docker build \

View File

@ -13,6 +13,7 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
platform: linux/amd64
command: pipenv run uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8000
volumes:
- ./backend:/usr/src/app