abcd118q commited on
Commit
f7cf775
·
verified ·
1 Parent(s): 88c2c5d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,22 +1,20 @@
1
- # Use the official OneDev image
2
  FROM 1dev/server:latest
3
 
4
- # OneDev uses 6610 for HTTP by default.
5
- # HF Spaces require the application to listen on port 7860.
6
  ENV ONEDEV_HTTP_PORT=7860
7
 
8
- # Point OneDev's data directory to the HF persistent storage mount
9
  ENV ONEDEV_DATA_DIR=/data
10
 
11
- # OneDev uses an internal SSH server; we map it to 7861
12
- # (Note: HF mostly supports HTTP traffic on 7860, so SSH might be restricted)
13
  ENV ONEDEV_SSH_PORT=7861
14
 
15
- # Ensure the container has permission to write to /data
16
  USER root
17
  RUN chmod -R 777 /data
18
 
19
  EXPOSE 7860
20
 
21
- # Start OneDev
22
  ENTRYPOINT ["/opt/onedev/bin/server.sh", "console"]
 
1
+ # Use the correct official OneDev image name
2
  FROM 1dev/server:latest
3
 
4
+ # HF Spaces require the app to listen on port 7860
 
5
  ENV ONEDEV_HTTP_PORT=7860
6
 
7
+ # Point OneDev to your HF Persistent Storage mount
8
  ENV ONEDEV_DATA_DIR=/data
9
 
10
+ # OneDev SSH port (Note: HF mainly supports HTTP on 7860)
 
11
  ENV ONEDEV_SSH_PORT=7861
12
 
13
+ # Ensure root permissions to initialize the /data volume
14
  USER root
15
  RUN chmod -R 777 /data
16
 
17
  EXPOSE 7860
18
 
19
+ # Start OneDev in console mode
20
  ENTRYPOINT ["/opt/onedev/bin/server.sh", "console"]