forked from antismash/antismash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (17 loc) · 988 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
# antiSMASH 5 container with a snapshot of the development tree
# VERSION 0.0.1
FROM antismash/base5-nonfree:latest
LABEL maintainer="Kai Blin <[email protected]>"
# Python and Docker are not getting along encoding-wise
ENV LANG C.UTF-8
# Install git
RUN apt-get update && apt-get install -y git && apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
# Grab antiSMASH
COPY . /antismash
ADD docker/instance.cfg /antismash/antismash/config
RUN HARDCODE_ANTISMASH_GIT_VERSION=1 pip3 install /antismash && python3 -c "import antismash; antismash.config.build_config(['--databases', 'mounted_at_runtime'], modules=antismash.get_all_modules()); antismash.main.prepare_module_data()"
RUN mkdir /matplotlib && MPLCONFIGDIR=/matplotlib python3 -c "import matplotlib.pyplot as plt" && chmod -R a+rw /matplotlib
ADD docker/run /usr/local/bin/run
VOLUME ["/input", "/output", "/databases"]
WORKDIR /output
ENTRYPOINT ["/usr/local/bin/run"]