[REST API] Change docker image name and update docs (#901)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## Single command to rule them all,
|
||||
|
||||
```bash
|
||||
docker run -d --name embedchain -p 8080:8080 embedchain/app:rest-api-latest
|
||||
docker run -d --name embedchain -p 8080:8080 embedchain/rest-api:latest
|
||||
```
|
||||
|
||||
### To run the app locally,
|
||||
@@ -14,8 +14,8 @@ DEVELOPMENT=True && python -m main
|
||||
Using docker (locally),
|
||||
|
||||
```bash
|
||||
docker build -t embedchain/app:rest-api-latest .
|
||||
docker run -d --name embedchain -p 8080:8080 embedchain/app:rest-api-latest
|
||||
docker image push embedchain/app:rest-api-latest
|
||||
docker build -t embedchain/rest-api:latest .
|
||||
docker run -d --name embedchain -p 8080:8080 embedchain/rest-api:latest
|
||||
docker image push embedchain/rest-api:latest
|
||||
```
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ def generate_error_message_for_api_keys(error: ValueError) -> str:
|
||||
if missing_keys:
|
||||
missing_keys_str = ", ".join(missing_keys)
|
||||
return f"""Please set the {missing_keys_str} environment variable(s) when running the Docker container.
|
||||
Example: `docker run -e {missing_keys[0]}=xxx embedchain/app:rest-api-latest`
|
||||
Example: `docker run -e {missing_keys[0]}=xxx embedchain/rest-api:latest`
|
||||
"""
|
||||
else:
|
||||
return "Unknown error occurred."
|
||||
|
||||
Reference in New Issue
Block a user