RockSky1 commited on
Commit
47d82f1
·
verified ·
1 Parent(s): f36a9d4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -1,9 +1,7 @@
1
  FROM ubuntu:24.04
2
 
3
- # Prevent interactive prompts during installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Update system and install base packages + Ubuntu utilities
7
  RUN apt-get update && apt-get install -y \
8
  curl \
9
  sudo \
@@ -12,22 +10,21 @@ RUN apt-get update && apt-get install -y \
12
  build-essential \
13
  python3 \
14
  python3-pip \
 
 
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # Install the latest version of code-server using the official Ubuntu script
18
  RUN curl -fsSL https://code-server.dev/install.sh | sh
19
 
20
- # Give the built-in 'ubuntu' user (UID 1000) passwordless sudo rights
21
  RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
22
 
23
- # Prepare safe workspace directories inside the default ubuntu profile
24
- RUN mkdir -p /home/ubuntu/workspace && chown -R ubuntu:ubuntu /home/ubuntu
25
 
26
  USER ubuntu
27
  WORKDIR /home/ubuntu/workspace
28
 
29
- # Hugging Face app port
30
  EXPOSE 7860
 
31
 
32
- # Start code-server
33
- CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password"]
 
1
  FROM ubuntu:24.04
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  curl \
7
  sudo \
 
10
  build-essential \
11
  python3 \
12
  python3-pip \
13
+ nodejs \
14
+ npm \
15
  && rm -rf /var/lib/apt/lists/*
16
 
 
17
  RUN curl -fsSL https://code-server.dev/install.sh | sh
18
 
 
19
  RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
20
 
21
+ RUN mkdir -p /home/ubuntu/workspace && \
22
+ chown -R ubuntu:ubuntu /home/ubuntu
23
 
24
  USER ubuntu
25
  WORKDIR /home/ubuntu/workspace
26
 
 
27
  EXPOSE 7860
28
+ EXPOSE 3000
29
 
30
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]