-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (49 loc) · 1.79 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
ARG tag
FROM node:${tag}-alpine
ARG version
LABEL com.plasmops.vendor=PlasmOps \
com.plasmops.version=$version
ENV LANG=C.UTF-8
# Docker env variables
ENV DOCKER_CHANNEL stable
ENV DOCKER_VERSION 18.09.0
ENV DOCKER_SHASUM 08795696e852328d66753963249f4396af2295a7fe2847b839f7102e25e47cb9
## Install build software
#
RUN apk add --no-cache --update \
curl bash git tar jq \
git binutils coreutils findutils file build-base
## Install python3 and create links (python, pip), mind that it's python3 anyways!
#
RUN apk add --no-cache --update python3 python3-dev && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
ln -sf /usr/bin/python3 /usr/bin/python && \
ln -sf /usr/bin/python3-config /usr/bin/python-config && \
ln -sf /usr/bin/pydoc3 /usr/bin/pydoc && \
ln -sf /usr/bin/pip3 /usr/bin/pip && \
( rm -rf /root/.cache /root/.* 2>/dev/null || /bin/true )
## AWS tools
RUN \
pip install awscli && apk add --no-cache groff less mailcap && \
( rm -rf /root/.cache /root/.* 2>/dev/null || /bin/true )
## Install docker-ce
#
RUN \
if ! curl -#fL -o docker.tgz "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz"; then \
echo >&2 "error: failed to download 'docker-${DOCKER_VERSION}' from '${DOCKER_CHANNEL}' for x86_64"; \
exit 1; \
fi; \
\
tar -xzf docker.tgz \
--strip-components 1 \
-C /usr/local/bin && \
\
echo "${DOCKER_SHASUM} docker.tgz" | sha256sum -c && rm docker.tgz
## We don't install custom modprobe, since haven't run into issues yet (see the link bellow)
# https://github.com/docker-library/docker/blob/master/18.06/modprobe.sh
#
COPY /entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]