Files
webterm/Dockerfile
T
Rui Carmo a0e31d43fd merge
2026-01-21 23:53:57 +00:00

20 lines
420 B
Docker

# Minimal image for serving a web terminal
FROM python:3.12-slim
# Install minimal dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
make \
&& rm -rf /var/lib/apt/lists/*
# Install textual-webterm
COPY . /app
WORKDIR /app
RUN make install
# Expose the default port
EXPOSE 8080
# Run the terminal server
ENTRYPOINT ["textual-webterm"]
CMD ["--host", "0.0.0.0", "--port", "8080"]