Skip to content

Commit

Permalink
feat: fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AiroPi committed Jan 7, 2025
1 parent c2a612e commit 0e697da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: lint

on:
push:
pull_request:
types: [ opened, reopened, synchronize ]
workflow_dispatch:
# push:
# pull_request:
# types: [ opened, reopened, synchronize ]

jobs:
check:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ENV PATH="/app/.venv/bin:$PATH"
ENV PYTHONUNBUFFERED=0

FROM base AS production
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
CMD ["hypercorn", "main:app", "-b", "0.0.0.0:80"]

FROM base AS debug
COPY --parents ./scripts/readme_generator.py ./templates/README.md ./
Expand Down
2 changes: 2 additions & 0 deletions deploy/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ services:
- ./data:/app/data
environment:
GITHUB_PROFILE_URL: "https://github.com/AiroPi"
expose:
- 80

0 comments on commit 0e697da

Please sign in to comment.