chore: run database migrations during Docker image build
This commit is contained in:
parent
c9a6cd3b78
commit
b67c39034c
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user