[fix]. Run migrations before app startup
This commit is contained in:
@@ -11,8 +11,10 @@ COPY pyproject.toml README.md /app/
|
||||
COPY src /app/src
|
||||
COPY alembic.ini /app/
|
||||
COPY alembic /app/alembic
|
||||
COPY docker/entrypoint.sh /app/docker/entrypoint.sh
|
||||
|
||||
RUN pip install --no-cache-dir .
|
||||
RUN chmod +x /app/docker/entrypoint.sh
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["uvicorn", "gitea_codex_bot.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
CMD ["/app/docker/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user