inoki-giskard commited on
Commit
a90db22
1 Parent(s): fe45df8

Simplify finding requirements.txt

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. hf.sh +1 -1
Dockerfile CHANGED
@@ -29,7 +29,7 @@ USER giskard
29
  COPY --chown=giskard supervisord.conf $GSK_DIST_PATH
30
 
31
  # Copy requirements for demo Space external worker
32
- COPY --chown=giskard requirements.txt $GSK_DIST_PATH
33
 
34
  # Internal workr doesn't download resource, but takes them directly from projects, so no cache
35
  ENV GSK_CACHE_DIR=projects
 
29
  COPY --chown=giskard supervisord.conf $GSK_DIST_PATH
30
 
31
  # Copy requirements for demo Space external worker
32
+ COPY --chown=giskard requirements.txt /requirements.txt
33
 
34
  # Internal workr doesn't download resource, but takes them directly from projects, so no cache
35
  ENV GSK_CACHE_DIR=projects
hf.sh CHANGED
@@ -33,7 +33,7 @@ autorestart=true
33
  redirect_stderr=true
34
  startsecs=0
35
  startretries=5000
36
- command=/bin/bash -c 'pip install -r ${GSK_DIST_PATH}/requirements.txt && python -m giskard.cli worker start -u \"http://localhost:9000\" -k \"\$GISKARD_DEFAULT_API_KEY\"; sleep 5'
37
  """ >> "${GSK_DIST_PATH}/supervisord.conf"
38
  fi
39
 
 
33
  redirect_stderr=true
34
  startsecs=0
35
  startretries=5000
36
+ command=/bin/bash -c 'pip install -r /requirements.txt && python -m giskard.cli worker start -u \"http://localhost:9000\" -k \"\$GISKARD_DEFAULT_API_KEY\"; sleep 5'
37
  """ >> "${GSK_DIST_PATH}/supervisord.conf"
38
  fi
39