teleport/docker/Dockerfile
Hugo Shaka 2ef2de956a
Use Teleport's standard buildbox (#17122)
* Use Teleport's standard buildbox

This commit edits the teleport-operator container image build process to
rely on Teleport's standard buildbox. This will make sure we are using a
single go version at all time.

This also removed unused environment variables from
`operator/Makefile`.

* Extract BUILDBOX variables out of build.assets/Makefile
* Put `teleport-operator` bin out of the Teleport source volume
2022-10-11 15:19:38 +00:00

25 lines
741 B
Docker

ARG BUILDBOX
FROM $BUILDBOX
# 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