Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -12
Dockerfile
CHANGED
|
@@ -1,29 +1,23 @@
|
|
| 1 |
-
# Use the community all-in-one image
|
| 2 |
FROM shantanupatil01/overleaf-extended:latest
|
| 3 |
|
| 4 |
-
# ---
|
| 5 |
|
| 6 |
# 1. Force Overleaf to listen on port 7860 (Hugging Face requirement)
|
| 7 |
ENV OVERLEAF_PORT=7860
|
| 8 |
-
ENV SHARELATEX_PORT=7860
|
| 9 |
|
| 10 |
# 2. Ensure it binds to all interfaces for external access
|
| 11 |
ENV OVERLEAF_LISTEN_IP=0.0.0.0
|
| 12 |
-
ENV SHARELATEX_LISTEN_IP=0.0.0.0
|
| 13 |
|
| 14 |
-
# 3. Set the public URL (
|
| 15 |
-
ENV
|
| 16 |
|
| 17 |
-
# 4.
|
| 18 |
ENV OVERLEAF_MONGO_URL=mongodb://localhost:27017/overleaf
|
| 19 |
ENV OVERLEAF_REDIS_HOST=localhost
|
| 20 |
|
| 21 |
-
# Hugging Face
|
| 22 |
-
# We ensure the app directory is writable
|
| 23 |
RUN chmod -R 777 /var/lib/overleaf /var/log/overleaf
|
| 24 |
|
| 25 |
# Expose the mandatory Hugging Face port
|
| 26 |
EXPOSE 7860
|
| 27 |
-
|
| 28 |
-
# The base image already has its own CMD/Entrypoint to start Mongo, Redis, and Overleaf.
|
| 29 |
-
# If you need to override it, ensure you start all internal services.
|
|
|
|
| 1 |
+
# Use the community all-in-one image
|
| 2 |
FROM shantanupatil01/overleaf-extended:latest
|
| 3 |
|
| 4 |
+
# --- Updated Overleaf 5.0+ Configuration ---
|
| 5 |
|
| 6 |
# 1. Force Overleaf to listen on port 7860 (Hugging Face requirement)
|
| 7 |
ENV OVERLEAF_PORT=7860
|
|
|
|
| 8 |
|
| 9 |
# 2. Ensure it binds to all interfaces for external access
|
| 10 |
ENV OVERLEAF_LISTEN_IP=0.0.0.0
|
|
|
|
| 11 |
|
| 12 |
+
# 3. Set the public URL (Rename this to match your actual Space URL)
|
| 13 |
+
ENV OVERLEAF_SITE_URL=https://huggingface.co
|
| 14 |
|
| 15 |
+
# 4. Database configuration (using the new prefix)
|
| 16 |
ENV OVERLEAF_MONGO_URL=mongodb://localhost:27017/overleaf
|
| 17 |
ENV OVERLEAF_REDIS_HOST=localhost
|
| 18 |
|
| 19 |
+
# Hugging Face permissions (ensures non-root user can write data)
|
|
|
|
| 20 |
RUN chmod -R 777 /var/lib/overleaf /var/log/overleaf
|
| 21 |
|
| 22 |
# Expose the mandatory Hugging Face port
|
| 23 |
EXPOSE 7860
|
|
|
|
|
|
|
|
|