-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
FROM ubuntu:18.10 | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
# Install dumb-init and ca-certificate. 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. | ||
# | ||
# 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 && apt-get upgrade -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
dumb-init \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ca-certificates \ | ||
&& update-ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Bundle teleport and control binary | ||
# Bundle "teleport", "tctl", and "tsh" binaries into image. | ||
ADD teleport /usr/local/bin/teleport | ||
ADD tctl /usr/local/bin/tctl | ||
ADD tsh /usr/local/bin/tsh | ||
|
||
# By setting this entry point, we expose make target as command | ||
# By setting this entry point, we expose make target as command. | ||
ENTRYPOINT ["/usr/bin/dumb-init", "teleport", "start", "-c", "/etc/teleport/teleport.yaml"] |