Add db migration and DNS dmarc entries
This commit is contained in:
+3
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user