generated from singularityhub/singularity-deploy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.ubuntu_20.04
31 lines (24 loc) · 1.38 KB
/
Dockerfile.ubuntu_20.04
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
FROM ubuntu:20.04
LABEL SOFTWARE_NAME ubuntu 20.04
LABEL MAINTAINER "Tom Harrop"
LABEL version=5bf6256
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C
RUN apt-get clean && \
rm -r /var/lib/apt/lists/*
RUN . /etc/os-release \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME} main restricted universe multiverse" >> mirror.txt && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-updates main restricted universe multiverse" >> mirror.txt && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-backports main restricted universe multiverse" >> mirror.txt && \
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt ${UBUNTU_CODENAME}-security main restricted universe multiverse" >> mirror.txt && \
mv /etc/apt/sources.list /etc/apt/sources.list.bak && \
cat mirror.txt /etc/apt/sources.list.bak > /etc/apt/sources.list && \
apt-get update && apt-get upgrade -y --fix-missing
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential
# the version file can be used to checkout the tag like this:
# RUN export VERSION=$(cat /app/VERSION) && \
# export TAG="$(expr "$VERSION" : '\([^_]*\)')" && \
# git checkout -f $TAG &&\
# git submodule update --init --recursive
ENTRYPOINT ["/usr/bin/cat /etc/os-release"]