mhamzaerol commited on
Commit
7cce1f0
·
1 Parent(s): 8569514

add env vars

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. backend/app.py +1 -1
Dockerfile CHANGED
@@ -13,6 +13,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
13
  rm -rf /var/lib/apt/lists/*
14
 
15
  USER user
 
 
 
16
  ENV PATH="/home/user/.local/bin:$PATH"
17
 
18
  # Set working directory
 
13
  rm -rf /var/lib/apt/lists/*
14
 
15
  USER user
16
+ # Set environment variables
17
+ ENV DATA_PATH=/app/backend/data/all_data_up.pickle
18
+ ENV DATA_URL=https://drive.google.com/file/d/1BWlAv2QUMQbKXZ01nby5l0JdtGI8YgNI/view?usp=sharing
19
  ENV PATH="/home/user/.local/bin:$PATH"
20
 
21
  # Set working directory
backend/app.py CHANGED
@@ -30,7 +30,7 @@ segmentationColors = [
30
  (139, 69, 19)
31
  ]
32
 
33
- data_path = os.getenv('DATA_PATH', '/app/backend/data/all_data_up.pickle')
34
  if not os.path.exists(data_path):
35
  # raise FileNotFoundError(f"The data file at {data_path} was not found.")
36
  url = os.getenv('DATA_URL')
 
30
  (139, 69, 19)
31
  ]
32
 
33
+ data_path = os.getenv('DATA_PATH')
34
  if not os.path.exists(data_path):
35
  # raise FileNotFoundError(f"The data file at {data_path} was not found.")
36
  url = os.getenv('DATA_URL')