Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -11,7 +11,9 @@ RUN apt-get update && apt-get install -y portaudio19-dev
|
|
| 11 |
COPY ./requirements.txt /code/requirements.txt
|
| 12 |
|
| 13 |
# Install the Python dependencies
|
| 14 |
-
RUN
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Copy the current directory contents into the container at /code
|
| 17 |
COPY . .
|
|
|
|
| 11 |
COPY ./requirements.txt /code/requirements.txt
|
| 12 |
|
| 13 |
# Install the Python dependencies
|
| 14 |
+
RUN python -m venv .env \
|
| 15 |
+
&& . .env/bin/activate \
|
| 16 |
+
&& pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 17 |
|
| 18 |
# Copy the current directory contents into the container at /code
|
| 19 |
COPY . .
|