miike-ai commited on
Commit
d3d1a02
·
verified ·
1 Parent(s): e388c47

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -18,7 +18,7 @@ RUN mkdir -p /workspace
18
  RUN mkdir -p /root/.config/code-server /root/.ollama
19
 
20
  # Configure code-server to run on port 7860 (Hugging Face Spaces default)
21
- RUN echo "bind-addr: 0.0.0.0:7860\nauth: none\ncert: false" > /root/.config/code-server/config.yaml
22
 
23
  # Install Ollama after code-server is set up
24
  RUN curl -fsSL https://ollama.com/install.sh | sh || true
@@ -37,12 +37,12 @@ RUN echo '#!/bin/bash\n\
37
  sleep 2\n\
38
  \n\
39
  # Start code-server in the foreground\n\
40
- exec code-server --disable-telemetry --bind-addr 0.0.0.0:7860 /workspace\n\
41
  ' > /start.sh && \
42
  chmod +x /start.sh
43
 
44
  # Expose ports for both services
45
- EXPOSE 7860 11434
46
 
47
  # Set the workspace as working directory
48
  WORKDIR /workspace
 
18
  RUN mkdir -p /root/.config/code-server /root/.ollama
19
 
20
  # Configure code-server to run on port 7860 (Hugging Face Spaces default)
21
+ RUN echo "bind-addr: 0.0.0.0:8443\nauth: none\ncert: false" > /root/.config/code-server/config.yaml
22
 
23
  # Install Ollama after code-server is set up
24
  RUN curl -fsSL https://ollama.com/install.sh | sh || true
 
37
  sleep 2\n\
38
  \n\
39
  # Start code-server in the foreground\n\
40
+ exec code-server --disable-telemetry --bind-addr 0.0.0.0:8443 /workspace\n\
41
  ' > /start.sh && \
42
  chmod +x /start.sh
43
 
44
  # Expose ports for both services
45
+ EXPOSE 8443 11434
46
 
47
  # Set the workspace as working directory
48
  WORKDIR /workspace