blobba commited on
Commit
ca91800
·
1 Parent(s): 179e866

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,17 +1,16 @@
1
- # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  FROM ubuntu:latest
3
 
4
- # Install necessary packages
5
- RUN apt-get update && apt-get install -y sudo snapd
6
 
7
- # Install ttyd snap package
8
- RUN sudo snap install ttyd --classic
9
 
10
- # Set the working directory
11
- WORKDIR /
12
 
13
  # Expose the desired port
14
  EXPOSE 7681
15
 
16
- # Run ttyd with the specified options
17
- CMD ["ttyd", "-W", "--port", "7681"]
 
 
1
  FROM ubuntu:latest
2
 
3
+ # Install required packages
4
+ RUN apt-get update && apt-get install -y curl
5
 
6
+ # Fetch ttyd binary
7
+ RUN curl -Lo /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64
8
 
9
+ # Set permissions
10
+ RUN chmod +x /usr/local/bin/ttyd
11
 
12
  # Expose the desired port
13
  EXPOSE 7681
14
 
15
+ # Start ttyd with the specified options
16
+ CMD ["/usr/local/bin/ttyd", "-W", "--port", "7681"]