Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·60 lines (50 loc) · 1.63 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·60 lines (50 loc) · 1.63 KB
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
ARG tag
FROM ruby:${tag}-alpine
ARG version
LABEL com.plasmops.vendor=PlasmOps \
com.plasmops.version=$version \
com.plasmops.ci=gitlab
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 python 2.7
#
RUN apk add --no-cache --update python python-dev && \
python -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip install --upgrade pip setuptools && \
( 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
#
## Install nodejs & npm
#
RUN apk add --no-cache --update \
nodejs g++ make
COPY /entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]