-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 953 Bytes
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 953 Bytes
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
# Pull any base image that includes python3
FROM python:3.12
# add node
RUN apt-get update && apt-get install -y nodejs npm
# install the toolbox runner tools
RUN pip install \
json2args \
pandas \
numpy \
plotly \
seaborn \
matplotlib \
plotly \
scikit-learn \
pathlib \
statsmodels \
jinja2
# if you do not need data-preloading as your tool does that on its own
# you can use this instread of the line above to use a json2args version
# with less dependencies
# RUN pip install json2args>=0.6.2
# Do anything you need to install tool dependencies here
RUN echo "Replace this line with a tool"
# create the tool input structure
RUN mkdir /in
COPY ./in /in
RUN mkdir /out
RUN mkdir /src
COPY ./src /src
RUN cd /src/report && npm install
# copy the citation file - looks funny to make COPY not fail if the file is not there
COPY ./CITATION.cf[f] /src/CITATION.cff
WORKDIR /src
CMD ["python", "run.py"]