[Bug fix] Fix sqlite related issue with api server example (#857)

This commit is contained in:
Deshraj Yadav
2023-10-26 21:54:45 -07:00
committed by GitHub
parent c95d458e52
commit 78ec91a3a9
5 changed files with 24 additions and 17 deletions

View File

@@ -8,4 +8,9 @@ COPY . .
EXPOSE 5000
CMD ["python", "api_server.py"]
ENV FLASK_APP=api_server.py
ENV FLASK_RUN_EXTRA_FILES=/usr/src/api/*
ENV FLASK_ENV=development
CMD ["flask", "run", "--host=0.0.0.0", "--reload"]