Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -6,7 +6,6 @@ ENV N8N_PORT=7860
|
|
| 6 |
ENV N8N_PROTOCOL=https
|
| 7 |
|
| 8 |
# POINT N8N TO THE PERSISTENT BUCKET
|
| 9 |
-
# In HF Spaces, persistent storage is typically mounted at /data
|
| 10 |
ENV N8N_USER_FOLDER=/data/.n8n
|
| 11 |
|
| 12 |
# Set the user to a non-root user for security
|
|
@@ -17,5 +16,5 @@ USER 1000
|
|
| 17 |
# Expose the HF port
|
| 18 |
EXPOSE 7860
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
CMD ["
|
|
|
|
| 6 |
ENV N8N_PROTOCOL=https
|
| 7 |
|
| 8 |
# POINT N8N TO THE PERSISTENT BUCKET
|
|
|
|
| 9 |
ENV N8N_USER_FOLDER=/data/.n8n
|
| 10 |
|
| 11 |
# Set the user to a non-root user for security
|
|
|
|
| 16 |
# Expose the HF port
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
+
# Use absolute path and a shell wrapper to ensure environment variables are expanded
|
| 20 |
+
CMD ["sh", "-c", "/usr/local/bin/n8n start"]
|