CoolFace
Apppublic

mazzio/zenml-server

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes
Dockerfile65 linesDownload Raw Back to root
1FROM zenmldocker/zenml-server:latest2 3ENV ZENML_ANALYTICS_OPT_IN=true4ENV ENV_ZENML_SERVER_DEPLOYMENT_TYPE="hf_spaces"5 6################################################################################7#8# CONFIGURING YOUR ZENML HF SPACES SERVER9# ---------------------------------------10# By default this space is not persistent. All ZenML metadata is stored in11# localstorage in a SQLite database. If you would like to make your storage12# persistent, use the appropriate environment variables below to configure the13# image to use a MySQL-compatible database service that is reachable from the14# container. See https://docs.zenml.io/getting-started/deploying-zenml/docker15# for more information on how to configure these environment variables.16 17# You can also configure the secrets store to use for your ZenML server. Be 18# sure to use Huggingface Spaces' 'Repository Secrets' feature to store any19# secrets referenced here. See20# https://huggingface.co/docs/hub/spaces-overview#managing-secrets for more21# information on how to configure these environment variables.22 23# ENV ZENML_DEFAULT_PROJECT_NAME=""24# ENV ZENML_DEFAULT_USER_NAME=""25# ENV ZENML_DEFAULT_USER_PASSWORD=""26# ENV ZENML_STORE_URL=""27# ENV ZENML_STORE_SSL_CA=""28# ENV ZENML_STORE_SSL_CERT=""29# ENV ZENML_STORE_SSL_KEY=""30# ENV ZENML_STORE_SSL_VERIFY_SERVER_CERT=""31 32# ENV ZENML_LOGGING_VERBOSITY=""33 34# # SECRETS STORE CONFIGURATION35# ENV ZENML_SECRETS_STORE_TYPE=""36# ENV ZENML_SECRETS_STORE_ENCRYPTION_KEY=""37# ENV ZENML_SECRETS_STORE_CLASS_PATH=""38# ENV ZENML_JWT_SECRET_KEY=""39 40# # AWS Secrets Store Configuration41# ENV ZENML_SECRETS_STORE_REGION_NAME=""42# ENV ZENML_SECRETS_STORE_AWS_ACCESS_KEY_ID=""43# ENV ZENML_SECRETS_STORE_AWS_SECRET_ACCESS_KEY=""44# ENV ZENML_SECRETS_STORE_AWS_SESSION_TOKEN=""45# ENV ZENML_SECRETS_STORE_SECRET_LIST_REFRESH_TIMEOUT=""46 47# # GCP Secrets Store Configuration48# ENV ZENML_SECRETS_STORE_PROJECT_ID=""49# ENV GOOGLE_APPLICATION_CREDENTIALS=""50 51# # Azure Secrets Store Configuration52# ENV ZENML_SECRETS_STORE_KEY_VAULT_NAME=""53# ENV ZENML_SECRETS_STORE_AZURE_CLIENT_ID=""54# ENV ZENML_SECRETS_STORE_AZURE_CLIENT_SECRET=""55# ENV ZENML_SECRETS_STORE_AZURE_TENANT_ID=""56 57# # Hashicorp Secrets Store Configuration58# ENV ZENML_SECRETS_STORE_VAULT_ADDR=""59# ENV ZENML_SECRETS_STORE_VAULT_TOKEN=""60# ENV ZENML_SECRETS_STORE_VAULT_NAMESPACE=""61# ENV ZENML_SECRETS_STORE_MAX_VERSIONS=""62 63ENTRYPOINT ["uvicorn", "zenml.zen_server.zen_server_api:app",  "--log-level", "debug"]64CMD ["--proxy-headers", "--port", "8080", "--host",  "0.0.0.0"]65