Merge remote-tracking branch 'origin/main'
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -20,7 +20,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 20 |
# Copy application files
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
-
# Create necessary directories
|
| 24 |
RUN mkdir -p content Story-Generation /tmp/matplotlib_cache && \
|
| 25 |
chmod -R 777 /app && \
|
| 26 |
chmod -R 777 /tmp && \
|
|
@@ -29,10 +29,10 @@ RUN mkdir -p content Story-Generation /tmp/matplotlib_cache && \
|
|
| 29 |
# Expose Gradio default port
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
-
# Set environment variables for Gradio
|
| 33 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 34 |
ENV GRADIO_SERVER_PORT=7860
|
| 35 |
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
|
| 36 |
|
| 37 |
-
# Run the application
|
| 38 |
CMD ["python", "app.py"]
|
|
|
|
| 20 |
# Copy application files
|
| 21 |
COPY . .
|
| 22 |
|
| 23 |
+
# Create necessary directories
|
| 24 |
RUN mkdir -p content Story-Generation /tmp/matplotlib_cache && \
|
| 25 |
chmod -R 777 /app && \
|
| 26 |
chmod -R 777 /tmp && \
|
|
|
|
| 29 |
# Expose Gradio default port
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
+
# Set environment variables for Gradio
|
| 33 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 34 |
ENV GRADIO_SERVER_PORT=7860
|
| 35 |
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
|
| 36 |
|
| 37 |
+
# Run the application
|
| 38 |
CMD ["python", "app.py"]
|