mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 17:53:28 +00:00
a573fd25ed
* Add missing (make build) step for running teleport cluster in docker container * Edit Dockerfile teleport-buildbox tag from :latest to :go1.13.2 to match the image tag from running "make docker" from root. * Update root README about docker
25 lines
873 B
Docker
25 lines
873 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 teleport-buildbox:go1.13.2
|
|
RUN apt-get update
|
|
# 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 .bashrc /root/.bashrc
|
|
COPY .screenrc /root/.screenrc
|
|
COPY ./sshd/start.sh /usr/bin/start-sshd.sh
|
|
|
|
# expose only proxy ports (SSH and HTTPS)
|
|
EXPOSE 3023 3080
|