forked from ghrcdaac/dmrpp-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (36 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
46 lines (36 loc) · 1.1 KB
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
FROM opendap/besd:3.21.1-367 AS base
HEALTHCHECK NONE
RUN yum -y update && \
yum -y upgrade
RUN yum install -y nano && \
yum install -y wget
ARG HOME='/home/worker'
WORKDIR ${HOME}
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.10.0-1-Linux-x86_64.sh -O miniconda.sh && \
bash miniconda.sh -b -p ${HOME}/miniconda && \
rm miniconda.sh
ENV PATH="${HOME}/miniconda/bin:${PATH}"
ARG BUILD=${HOME}/build
WORKDIR ${BUILD}
ENV PIP_ROOT_USER_ACTION=ignore
RUN pip install ipython && \
pip install pytest && \
pip install coverage
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY ./dmrpp_generator/ ./dmrpp_generator/
COPY ./setup.py ./
COPY generate_dmrpp.py .
RUN python setup.py install
COPY tests ./tests/
RUN coverage run -m pytest && \
coverage report -m && \
coverage lcov -o ./coverage/lcov.info && \
rm -rf tests .coverage .pytest_cache && \
pip uninstall pytest -y && \
pip uninstall coverage -y
RUN pip install --target $BUILD awslambdaric
COPY site.conf /etc/bes/
COPY bes.conf /etc/bes/
CMD ["python", "generate_dmrpp.py"]
ENTRYPOINT []