Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM stirlingtools/stirling-pdf:latest
|
| 2 |
+
|
| 3 |
+
# HuggingFace Spaces runs as user 1000
|
| 4 |
+
# Set env vars for HF Space compatibility
|
| 5 |
+
ENV DOCKER_ENABLE_SECURITY=false \
|
| 6 |
+
INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false \
|
| 7 |
+
LANGS=en_GB \
|
| 8 |
+
SERVER_PORT=7860
|
| 9 |
+
|
| 10 |
+
# HF Spaces exposes port 7860
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
|
| 13 |
+
# Override entrypoint to run on port 7860
|
| 14 |
+
CMD ["java", "-jar", "/app.jar", "--server.port=7860"]
|