nsthorat commited on
Commit
8796ec1
1 Parent(s): b8a8767
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. src/server.py +4 -0
Dockerfile CHANGED
@@ -12,11 +12,11 @@ WORKDIR /code
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
15
  COPY .env .
16
  COPY LICENSE .
17
 
18
- COPY /data /data
19
-
20
  # Copy static files.
21
  COPY /web/blueprint/build ./web/blueprint/build
22
 
 
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ COPY /data /data
16
+
17
  COPY .env .
18
  COPY LICENSE .
19
 
 
 
20
  # Copy static files.
21
  COPY /web/blueprint/build ./web/blueprint/build
22
 
src/server.py CHANGED
@@ -2,6 +2,7 @@
2
 
3
  import logging
4
  import os
 
5
  import subprocess
6
  from typing import Any
7
 
@@ -55,6 +56,9 @@ app.include_router(v1_router, prefix='/api/v1')
55
  # Serve static files in production mode.
56
  app.mount('/', StaticFiles(directory=os.path.join(DIST_PATH), html=True, check_dir=False))
57
 
 
 
 
58
  print('data_path=', data_path(), CONFIG)
59
  print('list:', os.listdir(data_path()))
60
  print('list 2:', os.listdir(get_datasets_dir(data_path())))
 
2
 
3
  import logging
4
  import os
5
+ import pathlib
6
  import subprocess
7
  from typing import Any
8
 
 
56
  # Serve static files in production mode.
57
  app.mount('/', StaticFiles(directory=os.path.join(DIST_PATH), html=True, check_dir=False))
58
 
59
+ print('curdir:', os.listdir('.'))
60
+ print('curdir2', list(pathlib.Path('.').rglob('*')))
61
+
62
  print('data_path=', data_path(), CONFIG)
63
  print('list:', os.listdir(data_path()))
64
  print('list 2:', os.listdir(get_datasets_dir(data_path())))