gsarti rsn86 commited on
Commit
6d4df8d
·
verified ·
1 Parent(s): 5365884

refactor(docker): Build package from source in Dockerfile (#5)

Browse files

- refactor(docker): Build package from source in Dockerfile (5d0b62e526df9378372c1a53e8350df156aca9fb)


Co-authored-by: Rodrigo Schmidt Nurmberg <[email protected]>

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -9,7 +9,7 @@ RUN mkdir -p /tmp/cache/
9
  RUN chmod a+rwx -R /tmp/cache/
10
  ENV TRANSFORMERS_CACHE=/tmp/cache/
11
 
12
- RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
15
 
 
9
  RUN chmod a+rwx -R /tmp/cache/
10
  ENV TRANSFORMERS_CACHE=/tmp/cache/
11
 
12
+ RUN pip install --no-cache-dir -e /code/src/
13
 
14
  ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
15