-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (57 loc) · 2.21 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
64
FROM debian:testing-slim
MAINTAINER Izaak "Zaak" Beekman <[email protected]>
ENV REFRESHED_AT 2016-12-20
COPY LICENSE /NOTICE
RUN DEBIAN_FRONTEND=noninteractive \
&& set -v \
&& echo "$DEBIAN_FRONTEND" \
&& cat /NOTICE \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
ca-certificates \
cmake \
g++ \
gcc \
gfortran \
git \
libtool \
make \
openssh-client \
python \
python-pip \
sudo \
wget \
&& gcc --version \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/log/* /tmp/* \
&& echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/issue | echo -n && cat /etc/motd && cat /NOTICE' >> /etc/bash.bashrc \
&& useradd -ms /bin/bash sourcerer \
&& passwd -d sourcerer \
&& usermod -aG sudo sourcerer \
&& (su -c whoami sourcerer) \
&& printf "\
sourceryinstitute/docker-base Copyright (C) 2016 Sourcery Institute \n\
This program comes with ABSOLUTELY NO WARRANTY.\n\
This is free software, and you are welcome to redistribute it\n\
under certain conditions.\n\
\n\
see https://github.com/sourceryinstitute/blob/master/LICENSE for the full BSD-3 license\n\n\n" > /etc/motd
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
ARG VCS_URL
ARG VCS_VERSION=latest
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.build-date="$BUILD_DATE" \
org.label-schema.version="$VCS_VERSION" \
org.label-schema.name="docker-base" \
org.label-schema.description="Lightweight base image for gcc, mpich and opencoarrays" \
org.label-schema.url="https://github.com/sourceryinstitute/docker-base/" \
org.label-schema.vcs-ref="$VCS_REF" \
org.label-schema.vcs-url="$VCS_URL" \
org.label-schema.vendor="Sourcery Institute" \
org.label-schema.license="BSD-3-Clause" \
org.label-schema.docker.cmd="docker run -v $(pwd):/workdir -i -t sourceryinstitute/docker-base:latest"
ENTRYPOINT ["/bin/bash"]
CMD ["-l"]