-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
25 lines (20 loc) · 956 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
# Lots of help from the following blog posts:
# https://jcristharif.com/conda-docker-tips.html
# https://opensourcelibs.com/lib/micromamba-docker
# https://uwekorn.com/2021/03/01/deploying-conda-environments-in-docker-how-to-do-it-right.html
FROM mambaorg/micromamba:1.3.0
ENV PYTHONDONTWRITEBYTECODE=true
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yml
RUN micromamba install -y --freeze-installed -n base -f /tmp/env.yml just \
&& micromamba clean -afy \
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete
COPY --chown=$MAMBA_USER:$MAMBA_USER . /fastq-dl
WORKDIR /fastq-dl
ENV POETRY_VIRTUALENVS_CREATE=false \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN just install && fastq-dl --version
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]