forked from spindynamics/TBKOSTER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (51 loc) · 1.36 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
FROM ubuntu:latest
MAINTAINER Pascal Thibaudeau <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ=Europe/Paris
RUN \
apt-get update && \
apt-get install -y locales tzdata && \
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
#RUN \
# locale-gen fr_FR.UTF-8 && \
# dpkg-reconfigure locales && \
# update-locale LANG="fr_FR.UTF-8" LANGUAGE="fr_FR"
#ENV LC_ALL="fr_FR.UTF-8"
RUN \
apt-get -y install \
build-essential \
gfortran \
libblas-dev \
liblapack-dev \
cmake \
vim \
doxygen \
graphviz \
texlive \
texlive-latex-recommended \
texlive-latex-extra \
gettext \
tex4ht \
biber \
ghostscript \
poppler-utils \
git-core && \
rm -rf /var/lib/apt/lists/*
ARG USERNAME=TBKOSTER
ARG USER_UID=1000
ARG USER_GID=$USER_UID
# Create the local user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
USER $USERNAME
WORKDIR /home/$USERNAME
# clone the repo and build the executables
RUN git clone https://github.com/spindynamics/TBKOSTER.git
WORKDIR /home/$USERNAME/TBKOSTER
RUN \
mkdir build && \
cmake -B build . && \
cd build && \
make && \
make doc