# Use an official Golang base image | |
FROM golang:alpine | |
# Install WebTTY | |
RUN apk add --no-cache git && \ | |
go install github.com/tsl0922/ttyd@latest | |
# Expose port 7681 for WebTTY | |
EXPOSE 7681 | |
# Start WebTTY with bash | |
CMD ["ttyd", "bash"] |
# Use an official Golang base image | |
FROM golang:alpine | |
# Install WebTTY | |
RUN apk add --no-cache git && \ | |
go install github.com/tsl0922/ttyd@latest | |
# Expose port 7681 for WebTTY | |
EXPOSE 7681 | |
# Start WebTTY with bash | |
CMD ["ttyd", "bash"] |