Debian Codegraph @

src/SPERR/docker/Dockerfile

raw
1 #
2 # The line below states we will base our new image on the Latest Official Ubuntu
3 FROM ubuntu:latest
4 #
5 # Identify the maintainer of an image
6 LABEL maintainer="[email protected]"
7 #
8 # Update the image to the latest packages
9 RUN apt-get update && \
10 apt-get upgrade -y && \
11 apt-get install -y git vim cmake-curses-gui build-essential && \
12 groupadd -r Odie && useradd -r -g Odie Odie && \
13 mkdir -p /home/Odie && cd /home && chown Odie:Odie Odie
14 #
15 # Switch user
16 USER Odie
17 #
18 # Clone the repo, and build it
19 RUN cd /home/Odie && \
20 git clone --depth 1 https://github.com/NCAR/SPERR.git SPERR-src && \
21 cd SPERR-src && mkdir build && cd build && \
22 cmake .. && make -j 6
23 #
24 # Update PATH enviornment variable
25 ENV PATH="$PATH:/home/Odie/SPERR-src/build/bin"