mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 01:03:40 +00:00
24 lines
1 KiB
Docker
24 lines
1 KiB
Docker
FROM ubuntu:20.04
|
|
|
|
# Install dumb-init and ca-certificates. The dumb-init package is to ensure
|
|
# signals and orphaned processes are are handled correctly. The ca-certificate
|
|
# package is installed because the base Ubuntu image does not come with any
|
|
# certificate authorities. libelf1 is a dependency introduced by Teleport 7.0.
|
|
#
|
|
# Note that /var/lib/apt/lists/* is cleaned up in the same RUN command as
|
|
# "apt-get update" to reduce the size of the image.
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ca-certificates dumb-init libelf1 && \
|
|
update-ca-certificates && \
|
|
apt-get -y clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Bundle "teleport", "tctl", and "tsh" binaries into image.
|
|
COPY teleport /usr/local/bin/teleport
|
|
COPY tctl /usr/local/bin/tctl
|
|
COPY tsh /usr/local/bin/tsh
|
|
|
|
# By setting this entry point, we expose make target as command.
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "teleport", "start", "-c", "/etc/teleport/teleport.yaml"]
|