forked from jpetazzo/dind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1.14 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
33
34
35
36
37
38
39
40
FROM mirror.gcr.io/library/ubuntu:20.04
MAINTAINER anovak@soe.ucsc.edu
# Make sure that package update and installation happens fresh every time this
# file is touched.
ADD dind-build-timestamp.txt /etc/dind-build-timestamp.txt
# Let's start with some basic stuff.
# Also install Docker from Ubuntu repositories, which
# should be sufficiently new to run in a container.
RUN DEBIAN_FRONTEND=noninteractive apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
lxc \
iptables \
sudo \
docker.io \
containerd && \
apt-get clean
# Install the magic Docker startup script.
ADD ./startdocker /usr/local/bin/startdocker
RUN chmod +x /usr/local/bin/startdocker
# Install a script to turn it off again.
ADD ./stopdocker /usr/local/bin/stopdocker
RUN chmod +x /usr/local/bin/stopdocker
# Install the magic wrapper to serve as the entry point.
ADD ./wrapdocker /usr/local/bin/wrapdocker
RUN chmod +x /usr/local/bin/wrapdocker
# Define additional metadata for our image.
VOLUME /var/lib/docker
ENTRYPOINT ["wrapdocker"]
# Make file logging the default
ENV LOG=file