refactor(docker): Build package from source in Dockerfile
Browse filesTo 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.
- 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 -
|
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 |
|