gotty-test-00 / Dockerfile
blobba's picture
Update Dockerfile
ca91800
raw
history blame
399 Bytes
FROM ubuntu:latest
# Install required packages
RUN apt-get update && apt-get install -y curl
# Fetch ttyd binary
RUN curl -Lo /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64
# Set permissions
RUN chmod +x /usr/local/bin/ttyd
# Expose the desired port
EXPOSE 7681
# Start ttyd with the specified options
CMD ["/usr/local/bin/ttyd", "-W", "--port", "7681"]