Update files
Browse files- Dockerfile +3 -0
- README.md +4 -0
- start_server.sh +3 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
TZ=Asia/Shanghai
|
| 5 |
|
|
|
|
| 1 |
FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
|
| 2 |
|
| 3 |
+
# Note: The warning "NVIDIA Driver was not detected" is normal when running in certain environments
|
| 4 |
+
# GPU functionality will be available when the container is run with proper NVIDIA Container Toolkit support
|
| 5 |
+
|
| 6 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 7 |
TZ=Asia/Shanghai
|
| 8 |
|
README.md
CHANGED
|
@@ -26,4 +26,8 @@ This space runs VSCode in a Docker container with a web interface.
|
|
| 26 |
2. Access VSCode through the generated URL
|
| 27 |
3. Default password/token is `huggingface`
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 26 |
2. Access VSCode through the generated URL
|
| 27 |
3. Default password/token is `huggingface`
|
| 28 |
|
| 29 |
+
## Troubleshooting
|
| 30 |
+
- If you see a warning about NVIDIA Driver not being detected, this is normal when running in certain environments. GPU functionality will be available when the container is run with proper NVIDIA Container Toolkit support.
|
| 31 |
+
- If you get an error about missing password, make sure the PASSWORD environment variable is set or a password is configured in the code-server config file.
|
| 32 |
+
|
| 33 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
start_server.sh
CHANGED
|
@@ -2,6 +2,9 @@
|
|
| 2 |
# Create data directory if it doesn't exist
|
| 3 |
mkdir -p /data
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
# Generate code-server config
|
| 6 |
mkdir -p ~/.config/code-server
|
| 7 |
cat > ~/.config/code-server/config.yaml << EOF
|
|
|
|
| 2 |
# Create data directory if it doesn't exist
|
| 3 |
mkdir -p /data
|
| 4 |
|
| 5 |
+
# Set password as environment variable
|
| 6 |
+
export PASSWORD="huggingface"
|
| 7 |
+
|
| 8 |
# Generate code-server config
|
| 9 |
mkdir -p ~/.config/code-server
|
| 10 |
cat > ~/.config/code-server/config.yaml << EOF
|