-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 954 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
39
40
FROM ubuntu:18.04
# Define some target paths for environment variables to allow running outside of a Kubernetes cluster, if necessary:
ENV GOOGLE_APPLICATION_CREDENTIALS=/tmp/kuberr/service-account.json
ENV KUBECONFIG=/tmp/kuberr/config
ENV ERDDAP_VERSION 1.82
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
libcurl4-openssl-dev \
libssl-dev \
build-essential \
&& \
apt-get purge && apt-get clean
ARG VERSION=0.1.0
WORKDIR /tmp/kuberr
COPY requirements.txt requirements.txt
COPY kuberr kuberr
COPY setup.py setup.py
COPY README.md README.md
RUN python3 -m pip install --upgrade pip setuptools wheel
#RUN pip3 install --no-cache-dir \
# kuberr==${VERSION} \
# -r requirements.txt
#RUN pip3 install . \
# -r requirements.txt
RUN python3 setup.py install
CMD ["erddap_config"]