Charan5775 commited on
Commit
d7fcd35
·
verified ·
1 Parent(s): d795ffa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -6,7 +6,7 @@ RUN apt-get update && \
6
  apt-get clean && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
- # Install Docker (required for Kasm's container management)
10
  RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
11
  sh get-docker.sh && \
12
  usermod -aG docker root
@@ -17,11 +17,12 @@ RUN curl -O https://kasm-static-content.s3.amazonaws.com/kasm_release_1.17.0.7f0
17
  tar -xf kasm_release_1.17.0.7f020d.tar.gz
18
 
19
  # Run the installation script with non-interactive mode
20
- # Note: The -N flag is for non-interactive mode, but the script is in kasm_release/ directory
21
- RUN bash kasm_release/install.sh -N
22
 
23
- # Kasm runs on port 443 by default
24
- EXPOSE 443
 
25
 
26
  # Health check
27
  HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
 
6
  apt-get clean && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
+ # Install Docker (required for Kasm)
10
  RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
11
  sh get-docker.sh && \
12
  usermod -aG docker root
 
17
  tar -xf kasm_release_1.17.0.7f020d.tar.gz
18
 
19
  # Run the installation script with non-interactive mode
20
+ # Note: Script is in kasm_release/ subdirectory, not directly in /tmp
21
+ RUN bash kasm_release/install.sh -e noninteractive --admin-password admin123 --user-password user123
22
 
23
+ # Kasm runs on port 443 by default, but Hugging Face requires port 7860
24
+ # We'll need to configure this or use a reverse proxy
25
+ EXPOSE 443 7860
26
 
27
  # Health check
28
  HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \