forked from lhico/docker4roms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.personal
27 lines (20 loc) · 924 Bytes
/
Dockerfile.personal
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
FROM ubuntu:20.04
MAINTAINER Danilo A. Silva <[email protected]> and Dalton K. Sasaki <[email protected]>
# install dependencies for ROMS
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive && \
TZ=America/Sao_Paulo && apt-get -y install tzdata
RUN apt-get install -y sudo wget build-essential gfortran-7 && \
apt-get -y install subversion libnetcdf-dev libnetcdff-dev libhdf5-serial-dev &&\
apt-get -y install libkernlib1-gfortran netcdf-bin hdf5-tools mpich nano
# add user lhico with no password, add to sudo group
RUN adduser --disabled-password --gecos '' lhico &&\
adduser lhico sudo &&\
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN chown -R lhico:lhico /home/lhico
USER lhico
# set a working directory to open when run the container
WORKDIR /home/lhico/
# set netcdf4 directories
ENV NF_CONFIG=/usr/bin/nf-config
ENV NETCDF_INCDIR=/usr/include