-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
32 lines (23 loc) · 1.16 KB
/
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
25
26
27
28
29
30
31
32
FROM alpine:3.7
MAINTAINER Cloud Posse, LLC
ENV TELEPORT_VERSION v2.4.2
ENV TELEPORT_DOWNLOAD_URL https://github.com/gravitational/teleport/releases/download/${TELEPORT_VERSION}/teleport-${TELEPORT_VERSION}-linux-amd64-bin.tar.gz
RUN apk upgrade --update \
&& apk add bash tzdata wget tar ca-certificates coreutils curl \
&& wget ${TELEPORT_DOWNLOAD_URL} \
&& tar -zxvf teleport-${TELEPORT_VERSION}-linux-amd64-bin.tar.gz \
&& mv teleport/tctl teleport/teleport teleport/tsh /usr/local/bin \
&& mkdir /etc/teleport /lib64 \
&& ln -sf /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 \
&& rm -rf /*.tar.gz /teleport /var/cache/apk/*
ENV GOMPLATE_VERSION 2.4.0
RUN curl --fail -sSL -o /usr/local/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-amd64-slim \
&& chmod +x /usr/local/bin/gomplate
VOLUME /var/lib/teleport /etc/teleport /host
ADD rootfs/ /
RUN chmod +x /usr/bin/teleport-node.sh
RUN chmod +x /usr/bin/teleport-proxy.sh
RUN chmod +x /usr/bin/teleport-auth.sh
RUN chmod +x /usr/bin/teleport-auth-connectors.sh
EXPOSE 3022-3025 3080
ENTRYPOINT ["/usr/bin/teleport-node.sh"]