Set Environment variable by Dockerfile
This commit is contained in:
parent
43aa1d97da
commit
51159fc3c1
2 changed files with 4 additions and 1 deletions
|
|
@ -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
3
container-cmd-cdk.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue