forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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:latest
# 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 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 /var/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