Files
teleport/docker/Dockerfile
T
Alexander Klizhentas cab8cf8070 Adds Teleport lab. (#7480)
Teleport lab is a demo environment in docker-compose.
All components are setup, so users can jump straight into
exploration of Teleport's features.
2021-07-15 11:56:23 -07:00

26 lines
909 B
Docker

# The base image (buildbox:latest) is built by running `make -C build.assets`
# from the base repo directory $GOPATH/gravitational.com/teleport
FROM quay.io/gravitational/teleport-buildbox:go1.15.5
# DEBUG=1 is needed for the Web UI to be loaded from static assets instead
# of the binary
ENV DEBUG=1 GOPATH=/root/go PATH=$PATH:/root/go/src/github.com/gravitational/teleport/build:/root/go/bin
# htop is useful for testing terminal resizing
RUN apt-get update && \
apt-get install -y htop vim screen && \
mkdir -p /root/go/src/github.com/gravitational/teleport
# allows ansible and ssh testing
RUN apt-get install -y ansible ssh inetutils-syslogd
RUN mkdir /run/sshd
VOLUME ["/teleport", "/var/lib/teleport"]
COPY ./sshd/bashrc /root/.bashrc
COPY ./sshd/screenrc /root/.screenrc
COPY ./sshd/scripts/start-sshd.sh /usr/bin/start-sshd.sh
# expose only proxy ports (SSH and HTTPS)
EXPOSE 3023 3080