-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 1.19 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
FROM arm64v8/ubuntu:focal
MAINTAINER James D. Mitchell <[email protected]>
ENV LIBSEMIGROUPS_VERSION 2.5.1
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq \
&& apt-get install -y \
automake \
autoconf \
build-essential \
curl \
git \
libtool \
m4 \
pkg-config \
sudo
RUN adduser --quiet --shell /bin/bash --gecos "libsemigroups user,101,," --disabled-password libsemigroups \
&& adduser libsemigroups sudo \
&& chown -R libsemigroups:libsemigroups /home/libsemigroups/ \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
&& cd /home/libsemigroups \
&& touch .sudo_as_admin_successful
RUN curl -L -O https://github.com/libsemigroups/libsemigroups/releases/download/v${LIBSEMIGROUPS_VERSION}/libsemigroups-${LIBSEMIGROUPS_VERSION}.tar.gz \
&& tar -xf libsemigroups-${LIBSEMIGROUPS_VERSION}.tar.gz \
&& rm libsemigroups-${LIBSEMIGROUPS_VERSION}.tar.gz \
&& cd libsemigroups-${LIBSEMIGROUPS_VERSION} \
&& ./configure --disable-hpcombi --disable-eigen \
&& make -j4 \
&& sudo make install \
&& cd / \
&& rm -rf libsemigroups-${LIBSEMIGROUPS_VERSION}
USER libsemigroups
ENV HOME /home/libsemigroups
WORKDIR home/libsemigroups