-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
37 lines (29 loc) · 1.26 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
# Builds Bruker ripping image.
# This docker-wine image is about 2 GB, mostly from:
# - 0.5 GB from Ubuntu packages
# - 1.5 GB from wine install
FROM scottyhardy/docker-wine:stable-5.0.2-nordp
LABEL maintainer="Chris Roat <[email protected]>"
# The entrypoint wrapper runs the wine setup as wineuser.
# The xvfb-run wrapper redirects all displays to a virtual (unseen) display.
# This adds about 1.6 GB to the image size.
RUN /usr/bin/entrypoint xvfb-run winetricks -q vcrun2015
ENV PATH /opt/conda/bin:$PATH
# Conda install is 250 MB
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
# Environment is ~700 MB
COPY environment.yml .
RUN conda env update --quiet --name base --file environment.yml \
&& conda clean --all -f -y \
&& rm environment.yml
COPY runscript.sh /apps/runscript.sh
CMD /apps/runscript.sh
# Copy code last to avoid busting the cache.
COPY . /apps/two-photon/
RUN pip install /apps/two-photon