Set Environment variable by Dockerfile

This commit is contained in:
nsxshota 2023-12-07 19:19:48 +09:00
commit 51159fc3c1
2 changed files with 4 additions and 1 deletions

View file

@ -17,4 +17,4 @@ RUN poetry config virtualenvs.create false && poetry install --no-interaction --
RUN poetry add pymysql==1.0.2
CMD ["uvicorn", "--factory", "src.backend.langflow.main:create_app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "debug"]
CMD ["sh", "./container-cmd-cdk.sh"]

3
container-cmd-cdk.sh Normal file
View file

@ -0,0 +1,3 @@
export LANGFLOW_DATABASE_URL="mysql+pymysql://${username}:${password}@${host}:3306/${dbname}"
echo $LANGFLOW_DATABASE_URL
uvicorn --factory src.backend.langflow.main:create_app --host 0.0.0.0 --port 7860 --reload --log-level debug