forked from dieterich-lab/ImmunOMICS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (36 loc) · 1.16 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM continuumio/miniconda3:latest
LABEL maintainer="Amina Lemsara <[email protected]>"
# Set up locales properly
RUN apt-get update && \
apt-get install --yes --no-install-recommends locales libtiff5 && \
apt-get purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Use bash as default shell, rather than sh
ENV SHELL /bin/bash
WORKDIR /tmp
# download the conda environment OR copy from local directory
COPY environment.yml /tmp/environment.yml
# install conda environment
RUN conda update conda --yes && \
conda env update -v -n root --file /tmp/environment.yml && \
# conda list --name root && \
conda clean --all --yes && \
conda clean -tipy && \
rm /tmp/environment.yml
RUN R -e 'remotes::install_github("mojaveazure/seurat-disk")'
RUN apt-get update
WORKDIR /ds
COPY src ./src
RUN chmod +x ./src
COPY src_celltype ./src_celltype
RUN chmod +x ./src_celltype
# clear tmp if there is anything in there...
RUN rm -rf /tmp/*
# # set bash as the default entry point
ENTRYPOINT [ "/bin/bash", "-c" ]