feat: auto-run migrations via psql init container on scheduler startup
This commit is contained in:
@@ -8,6 +8,7 @@ ENV PYTHONPATH=/app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc \
|
||||
libpq-dev \
|
||||
postgresql-client \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -19,6 +20,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY services/ /app/services/
|
||||
COPY tests/ /app/tests/
|
||||
COPY conftest.py /app/conftest.py
|
||||
COPY infra/migrations/ /app/infra/migrations/
|
||||
|
||||
RUN useradd -m -u 1000 stonks && \
|
||||
chown -R stonks:stonks /app
|
||||
|
||||
Reference in New Issue
Block a user