forked from terrimporter/MetaWorks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 836 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 836 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
# Dockerfile
# docker build -t metaworks .
# docker run -it --rm metaworks bash
# snakemake --jobs 4 --cores 4 --snakefile Snakefile_ESV
FROM condaforge/mambaforge:latest
COPY environment.yml /tmp/environment.yml
RUN mamba env create -f /tmp/environment.yml \
&& mamba clean --all --yes
RUN wget ftp://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/ORFfinder/linux-i64/ORFfinder.gz \
&& gunzip ORFfinder.gz \
&& chmod +x ORFfinder \
&& mv ORFfinder /opt/conda/envs/MetaWorks/bin/
ARG LD_LIBRARY_PATH
ENV PATH=/opt/conda/envs/MetaWorks/bin:$PATH
ENV LD_LIBRARY_PATH=/opt/conda/envs/MetaWorks/lib:$LD_LIBRARY_PATH
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /root/.bashrc \
&& echo "conda activate MetaWorks" >> /root/.bashrc
# Set up working directory
WORKDIR /MetaWorks
COPY . /MetaWorks
CMD ["/bin/bash", "-l"]