Create dockerfile
Browse files- dockerfile +19 -0
dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official FlareSolverr image
|
| 2 |
+
FROM ghcr.io/flaresolverr/flaresolverr:latest
|
| 3 |
+
|
| 4 |
+
# Set the port to 7860 (Required by Hugging Face Spaces)
|
| 5 |
+
ENV PORT=7860
|
| 6 |
+
# Disable the "Test" URL on startup to speed up boot time
|
| 7 |
+
ENV TEST_URL=http://localhost:7860
|
| 8 |
+
|
| 9 |
+
# Hugging Face runs as user 1000 by default.
|
| 10 |
+
# We need to ensure permissions are correct for the new port/logs.
|
| 11 |
+
USER root
|
| 12 |
+
RUN mkdir -p /app && chown -R 1000:1000 /app
|
| 13 |
+
USER 1000
|
| 14 |
+
|
| 15 |
+
# Expose the port
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# Command is already set in the base image,
|
| 19 |
+
# but the ENV PORT=7860 above ensures it listens correctly.
|