Clone04 commited on
Commit
0022230
·
verified ·
1 Parent(s): 9014ce7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,11 +1,12 @@
1
- # Use an official Alpine Linux base image
2
- FROM alpine:latest
3
 
4
- # Install ttyd and a shell (like bash)
5
- RUN apk add --no-cache ttyd bash
 
6
 
7
- # Expose port 7681 for ttyd
8
  EXPOSE 7681
9
 
10
- # Start ttyd with bash
11
  CMD ["ttyd", "bash"]
 
1
+ # Use an official Golang base image
2
+ FROM golang:alpine
3
 
4
+ # Install WebTTY
5
+ RUN apk add --no-cache git && \
6
+ go install github.com/tsl0922/ttyd@latest
7
 
8
+ # Expose port 7681 for WebTTY
9
  EXPOSE 7681
10
 
11
+ # Start WebTTY with bash
12
  CMD ["ttyd", "bash"]