Spaces:
Sleeping
Sleeping
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"] |