File size: 377 Bytes
179e866
 
ca91800
f7fe8f3
179e866
ca91800
cfa76a5
179e866
ca91800
cfa76a5
179e866
 
 
 
ca91800
bcc5a24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:latest

# Install required packages
RUN apt-get update && apt-get install -y curl bash

# Fetch ttyd binary
RUN curl -Lo ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64

# Set permissions
RUN chmod +x ttyd

# Expose the desired port
EXPOSE 7681

# Start ttyd with the specified options
CMD ["./ttyd", "--writable", "--port", "7681", "bash"]