Results of 1 - 2 of about 2 for export (0.001 sec.)
- 環境変数 11228
- 環境変数 Tip もし、「環境変数」とは何か、それをどう使うかを既に知っている場合は、このセクションをスキップして構いません。 環境変数( env var とも呼ばれる)はPythonコードの 外側 、つまり OS に存在する変数で、Pythonから読み取ることができます。
...でき、それらにPythonは不要です。 Linux, macOS, Windows Bash Windows PowerShell // You could create an env var MY_NAME with $ export MY_NAME = "Wade Wilson" // Then you could use it with other programs, like $ echo "Hello $MY_NAME " Hello Wade Wilson // C...dn't set the env var, we get the default value Hello World from Python // But if we create an environment variable first $ export MY_NAME = "Wade Wilson" // And then call the program again $ python main.py // Now it can read the environment variable He... - https://man.mtool.work/fastapi/0.115/environment-variables/
- コンテナ内のFastAPI - Docker 7485
- コンテナ内のFastAPI - Docker FastAPIアプリケーションをデプロイする場合、一般的なアプローチは Linuxコンテナ・イメージ をビルドすることです。 基本的には Docker を用いて行われます。生成されたコンテナ・イメージは、いくつかの方法のいずれかでデプ
...ts-stage # (2) WORKDIR /tmp # (3) RUN pip install poetry # (4) COPY ./pyproject.toml ./poetry.lock* /tmp/ # (5) RUN poetry export -f requirements.txt --output requirements.txt --without-hashes # (6) FROM python:3.9 # (7) WORKDIR /code # (8) COPY --from... - https://man.mtool.work/fastapi/0.115/deployment/docker/
PREV
1
NEXT