lucabadiali commited on
Commit
a2663e3
·
1 Parent(s): 85c00b7

edited docker file to set env variables

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. prometheus.yml +2 -2
Dockerfile CHANGED
@@ -18,4 +18,5 @@ COPY --chown=user . .
18
  EXPOSE 7860
19
 
20
  # 7. Start the app
21
- CMD [ "python3","-m", "uvicorn", "src.app.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
18
  EXPOSE 7860
19
 
20
  # 7. Start the app
21
+ #CMD [ "python3","-m", "uvicorn", "src.app.app:app", "--host", "0.0.0.0", "--port", "7860"]
22
+ CMD ["/bin/sh", "-c", ". ./env_config.sh && exec python3 -m uvicorn src.app.app:app --host 0.0.0.0 --port 7860"]
prometheus.yml CHANGED
@@ -7,8 +7,8 @@ scrape_configs:
7
  metrics_path: /metrics
8
  static_configs:
9
  - targets:
10
- - "host.docker.internal:8000"
11
- #- "lucabadiali-ml-ops-project.hf.space:443"
12
  # Se l#a Space è privata, aggiungi:
13
  # authorization:
14
  # type: Bearer
 
7
  metrics_path: /metrics
8
  static_configs:
9
  - targets:
10
+ #- "host.docker.internal:8000"
11
+ - "lucabadiali-ml-ops-project.hf.space:443"
12
  # Se l#a Space è privata, aggiungi:
13
  # authorization:
14
  # type: Bearer