switching to sqlmodel...

This commit is contained in:
Tom Villette
2023-08-17 18:17:34 +02:00
parent 30e7a8c87e
commit 84b7d44c42
8 changed files with 250 additions and 17 deletions

View File

@@ -8,8 +8,7 @@ RUN adduser -u 5678 --disabled-password --gecos "" appuser
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=appuser:appuser *.py .
COPY --chown=appuser:appuser invTypeMaterials.csv .
COPY --chown=appuser:appuser eveal /app
USER appuser
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]