Skip to content

Commit 82fb174

Browse files
authored
Merge pull request #25 from denvudd/fix/google-oauth
chore: update Dockerfile to use start.sh for application startup
2 parents 363b56c + 2055a7b commit 82fb174

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

apps/api/Dockerfile.prod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ COPY . .
1212

1313
ENV PYTHONPATH=/app
1414

15-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"]
15+
RUN chmod +x start.sh
16+
17+
CMD ["./start.sh"]

apps/api/start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
uv run alembic upgrade head
3+
uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 2

0 commit comments

Comments
 (0)