chore: run database migrations during Docker image build

This commit is contained in:
n.tolstov 2025-11-30 20:23:00 +03:00
parent c9a6cd3b78
commit b67c39034c

View File

@ -17,6 +17,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application code # Copy application code
COPY . . COPY . .
# Migrate database
RUN alembic upgrade head
# Expose port # Expose port
EXPOSE 8000 EXPOSE 8000