rsn86 commited on
Commit
5d0b62e
·
verified ·
1 Parent(s): 904d2fb

refactor(docker): Build package from source in Dockerfile

Browse files

To speed up development and testing, this change adjusts the
Dockerfile to build and install the package from the local
source code instead of pulling it from a package index.

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