generated from tool-spec/tool_template_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 717 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 717 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
# Pull any base image that includes python3
FROM python:3.12
# install the toolbox runner tools
RUN pip install "json2args[data]>=0.6.2"
# 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
# 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"]