Skip to content

Commit ddd11f6

Browse files
committed
Removed unnecessary biopython requirement, cleaning files while building docker image
1 parent 725a3c5 commit ddd11f6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CRISPRcasIdentifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import itertools
3131

3232
from collections import defaultdict
33-
from Bio import SeqIO
3433

3534
# Project imports
3635
from prodigal import prodigal

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ RUN rm Miniconda3-latest-Linux-x86_64.sh
1919
ENV PATH ~/miniconda3/bin:$PATH
2020

2121
# creating CRISPRcasIdentifier's env and making it active by default
22+
# and removing additional unnecessary files (see https://jcristharif.com/conda-docker-tips.html)
23+
ENV PYTHONDONTWRITEBYTECODE=true
2224
COPY crispr-env.yml ./
2325
RUN conda env create -f crispr-env.yml -n crispr-env
24-
RUN conda clean --all --yes
26+
RUN conda clean --all --yes \
27+
&& find ~/miniconda3/ -follow -type f -name '*.a' -delete \
28+
&& find ~/miniconda3/ -follow -type f -name '*.pyc' -delete \
29+
&& find ~/miniconda3/ -follow -type f -name '*.js.map' -delete
2530
RUN rm crispr-env.yml
2631
RUN echo "source ~/miniconda3/etc/profile.d/conda.sh && conda activate crispr-env" >> ~/.bashrc
2732

crispr-env.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ channels:
33
- defaults
44
dependencies:
55
- _libgcc_mutex=0.1=main
6-
- biopython=1.73=py37h7b6447c_0
76
- blas=1.0=openblas
87
- ca-certificates=2020.1.1=0
98
- certifi=2020.4.5.1=py37_0

0 commit comments

Comments
 (0)