-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (30 loc) · 977 Bytes
/
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
#############################################################
# Docker file use by Jenkin build
#############################################################
FROM ubuntu:20.04
ARG BUILDER_UID=9999
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ="Australia"
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libnetcdf15 \
libgsl23 \
libudunits2-0 \
libxml2-utils \
openjdk-11-jdk \
python3-dev \
maven \
wget \
netcdf-bin \
nco \
&& rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN wget -q https://bootstrap.pypa.io/pip/3.5/get-pip.py \
&& python get-pip.py pip==22.1.2 setuptools==49.6.0 wheel==0.35.1 \
&& rm -rf get-pip.py
RUN pip install \
bump2version==1.0.1
RUN useradd --create-home --no-log-init --shell /bin/bash --uid $BUILDER_UID builder
USER builder
WORKDIR /home/builder