-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·63 lines (48 loc) · 1.52 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Creates an image for skycoin development
FROM skycoin/skycoindev-cli:develop
# Install docker
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
RUN apt-key fingerprint 0EBFCD88
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
lsb-release \
software-properties-common \
apt-transport-https
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
btrfs-progs \
e2fsprogs \
iptables \
xfsprogs \
ca-certificates \
gnupg2 \
software-properties-common \
pigz \
docker-ce ;\
apt-get clean; \
rm -rf /var/lib/apt/lists/*
COPY modprobe.sh /usr/local/bin/modprobe
RUN set -x \
&& groupadd dockremap \
&& useradd -g dockremap dockremap \
&& echo 'dockremap:165536:65536' >> /etc/subuid \
&& echo 'dockremap:165536:65536' >> /etc/subgid
ENV DIND_COMMIT 3b5fac462d21ca164b3778647420016315289034
RUN set -ex; \
wget -O /usr/local/bin/dind "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind"; \
chmod +x /usr/local/bin/dind;
COPY dockerd-entrypoint.sh /usr/local/bin/
RUN ["chmod", "+x", "/usr/local/bin/dockerd-entrypoint.sh","/usr/local/bin/modprobe"]
VOLUME /var/lib/docker
EXPOSE 2375
#WORKDIR $GOPATH/src/github.com/skycoin
#VOLUME $GOPATH/src/
#ENV LD_LIBRARY_PATH=/usr/local/lib
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh"]
CMD []