ep9io commited on
Commit
261d368
·
verified ·
1 Parent(s): d14646b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- CMD ["server", "--bind", "0.0.0.0:3001"]
 
 
 
 
 
 
 
 
 
 
 
 
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}