Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -1,10 +1,18 @@
|
|
| 1 |
-
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
-
# you will also find guides on how best to write your Dockerfile
|
| 3 |
-
|
| 4 |
FROM ghcr.io/ep9io/rustpipe:main
|
| 5 |
|
|
|
|
| 6 |
ENV RUST_LOG=info
|
|
|
|
|
|
|
| 7 |
|
| 8 |
WORKDIR /workspace
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM ghcr.io/ep9io/rustpipe:main
|
| 2 |
|
| 3 |
+
|
| 4 |
ENV RUST_LOG=info
|
| 5 |
+
ENV PORT=7860
|
| 6 |
+
ENV AUTH_TOKEN=abc123
|
| 7 |
|
| 8 |
WORKDIR /workspace
|
| 9 |
|
| 10 |
+
|
| 11 |
+
# Hugging Face Spaces runs as a non-root user (UID 1000).
|
| 12 |
+
# The base image already creates a 'rustpipe' user with UID 1000,
|
| 13 |
+
# but we ensure the workspace is writable by this user.
|
| 14 |
+
USER root
|
| 15 |
+
RUN chown -R 1000:1000 /workspace
|
| 16 |
+
USER 1000
|
| 17 |
+
|
| 18 |
+
CMD rustpipe server --bind 0.0.0.0:7860 --token ${AUTH_TOKEN}
|