Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -8,6 +8,8 @@ ENV PYTHONUNBUFFERED=1
|
|
| 8 |
# Set the working directory in the container
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
|
|
|
| 11 |
# Copy only the requirements file to leverage Docker cache
|
| 12 |
COPY requirements.txt /app/requirements.txt
|
| 13 |
|
|
@@ -15,8 +17,11 @@ COPY requirements.txt /app/requirements.txt
|
|
| 15 |
RUN python -m pip install --upgrade pip && \
|
| 16 |
pip install --no-cache-dir -r requirements.txt && \
|
| 17 |
python -m spacy download en_core_web_md
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
# Copy the rest of the application code
|
| 20 |
COPY app.py /app/app.py
|
| 21 |
COPY webchat.py /app/webchat.py
|
| 22 |
COPY utils.py /app/utils.py
|
|
|
|
| 8 |
# Set the working directory in the container
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
|
| 12 |
+
|
| 13 |
# Copy only the requirements file to leverage Docker cache
|
| 14 |
COPY requirements.txt /app/requirements.txt
|
| 15 |
|
|
|
|
| 17 |
RUN python -m pip install --upgrade pip && \
|
| 18 |
pip install --no-cache-dir -r requirements.txt && \
|
| 19 |
python -m spacy download en_core_web_md
|
| 20 |
+
# Create the cache directory and set permissions
|
| 21 |
+
RUN mkdir -p /app/.cache && \
|
| 22 |
+
chmod -R 777 /app/
|
| 23 |
|
| 24 |
+
# Copy the rest of the application code
|
| 25 |
COPY app.py /app/app.py
|
| 26 |
COPY webchat.py /app/webchat.py
|
| 27 |
COPY utils.py /app/utils.py
|