Add db migration and DNS dmarc entries

This commit is contained in:
2026-05-20 13:20:58 -03:00
parent 636d3b73cb
commit e57df39562
19 changed files with 850 additions and 12 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ RUN apt-get update \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY alembic.ini .
COPY app ./app
COPY migrations ./migrations
RUN mkdir -p /app/config /app/data /app/logs
RUN groupadd --gid 1000 app \
@@ -21,4 +23,4 @@ RUN groupadd --gid 1000 app \
USER app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["sh", "-c", "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000"]