File size: 2,529 Bytes
172bddd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
FROM zenmldocker/zenml-server:latest
ENV ZENML_ANALYTICS_OPT_IN=true
ENV ENV_ZENML_SERVER_DEPLOYMENT_TYPE="hf_spaces"
################################################################################
#
# CONFIGURING YOUR ZENML HF SPACES SERVER
# ---------------------------------------
# By default this space is not persistent. All ZenML metadata is stored in
# localstorage in a SQLite database. If you would like to make your storage
# persistent, use the appropriate environment variables below to configure the
# image to use a MySQL-compatible database service that is reachable from the
# container. See https://docs.zenml.io/getting-started/deploying-zenml/docker
# for more information on how to configure these environment variables.
# You can also configure the secrets store to use for your ZenML server. Be
# sure to use Huggingface Spaces' 'Repository Secrets' feature to store any
# secrets referenced here. See
# https://huggingface.co/docs/hub/spaces-overview#managing-secrets for more
# information on how to configure these environment variables.
# ENV ZENML_DEFAULT_PROJECT_NAME=""
# ENV ZENML_DEFAULT_USER_NAME=""
# ENV ZENML_DEFAULT_USER_PASSWORD=""
# ENV ZENML_STORE_URL=""
# ENV ZENML_STORE_SSL_CA=""
# ENV ZENML_STORE_SSL_CERT=""
# ENV ZENML_STORE_SSL_KEY=""
# ENV ZENML_STORE_SSL_VERIFY_SERVER_CERT=""
# ENV ZENML_LOGGING_VERBOSITY=""
# # SECRETS STORE CONFIGURATION
# ENV ZENML_SECRETS_STORE_TYPE=""
# ENV ZENML_SECRETS_STORE_ENCRYPTION_KEY=""
# ENV ZENML_SECRETS_STORE_CLASS_PATH=""
# ENV ZENML_JWT_SECRET_KEY=""
# # AWS Secrets Store Configuration
# ENV ZENML_SECRETS_STORE_REGION_NAME=""
# ENV ZENML_SECRETS_STORE_AWS_ACCESS_KEY_ID=""
# ENV ZENML_SECRETS_STORE_AWS_SECRET_ACCESS_KEY=""
# ENV ZENML_SECRETS_STORE_AWS_SESSION_TOKEN=""
# ENV ZENML_SECRETS_STORE_SECRET_LIST_REFRESH_TIMEOUT=""
# # GCP Secrets Store Configuration
# ENV ZENML_SECRETS_STORE_PROJECT_ID=""
# ENV GOOGLE_APPLICATION_CREDENTIALS=""
# # Azure Secrets Store Configuration
# ENV ZENML_SECRETS_STORE_KEY_VAULT_NAME=""
# ENV ZENML_SECRETS_STORE_AZURE_CLIENT_ID=""
# ENV ZENML_SECRETS_STORE_AZURE_CLIENT_SECRET=""
# ENV ZENML_SECRETS_STORE_AZURE_TENANT_ID=""
# # Hashicorp Secrets Store Configuration
# ENV ZENML_SECRETS_STORE_VAULT_ADDR=""
# ENV ZENML_SECRETS_STORE_VAULT_TOKEN=""
# ENV ZENML_SECRETS_STORE_VAULT_NAMESPACE=""
# ENV ZENML_SECRETS_STORE_MAX_VERSIONS=""
ENTRYPOINT ["uvicorn", "zenml.zen_server.zen_server_api:app", "--log-level", "debug"]
CMD ["--proxy-headers", "--port", "8080", "--host", "0.0.0.0"]
|