Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
|
@@ -3,8 +3,8 @@ FROM python:3.9-slim
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Create required directories with proper permissions
|
| 6 |
-
RUN mkdir -p /tmp/matplotlib /tmp/rasa
|
| 7 |
-
chmod 777 /tmp/matplotlib /tmp/rasa
|
| 8 |
|
| 9 |
# Install system dependencies
|
| 10 |
RUN apt-get update && \
|
|
@@ -17,12 +17,8 @@ COPY . /app/
|
|
| 17 |
# Install Python dependencies
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
-
# Expose port for
|
| 21 |
-
EXPOSE 7860
|
| 22 |
-
|
| 23 |
-
# Train the model (if needed; alternatively, include pre-trained models in your repo)
|
| 24 |
-
RUN mkdir -p models && \
|
| 25 |
-
RASA_USER_HOME=/tmp/rasa rasa train
|
| 26 |
|
| 27 |
# Start the app
|
| 28 |
CMD ["python", "app.py"]
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Create required directories with proper permissions
|
| 6 |
+
RUN mkdir -p /tmp/matplotlib /tmp/rasa && \
|
| 7 |
+
chmod 777 /tmp/matplotlib /tmp/rasa
|
| 8 |
|
| 9 |
# Install system dependencies
|
| 10 |
RUN apt-get update && \
|
|
|
|
| 17 |
# Install Python dependencies
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
+
# Expose port for Rasa
|
| 21 |
+
EXPOSE 7860
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Start the app
|
| 24 |
CMD ["python", "app.py"]
|