-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (49 loc) · 1.56 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
46
47
48
49
50
51
52
53
FROM ubuntu:18.04
# System packages
RUN apt-get update && apt-get install -y \
bzip2 \
bc \
build-essential \
cmake \
curl \
g++ \
gfortran \
libboost-dev \
libboost-thread-dev \
libtool \
autoconf \
automake \
git \
pkg-config \
software-properties-common \
unzip \
wget \
&& \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
RUN addgroup --gid 1001 python && \
useradd --uid 1001 --gid 1001 python
RUN git clone https://github.com/micro-manager/micro-manager.git
RUN cd micro-manager && \
# remove TriggerScope since it make the build fail
sed -i -e '/TriggerScope/d' DeviceAdapters/configure.ac && \
sed -i -e '/TriggerScope/d' DeviceAdapters/Makefile.am && \
./autogen.sh && \
./configure --without-java && \
make && \
# will be installed to /usr/local/lib/micro-manager/
# demo config file: /micro-manager/bindist/any-platform/MMConfig_demo.cfg
make install
ENV MMCORE_PATH=/usr/local/lib/micro-manager/
ENV MMCONFIG_DEMO_PATH=/micro-manager/bindist/any-platform/MMConfig_demo.cfg
# Install miniconda to /miniconda
RUN curl -LO https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda3-latest-Linux-x86_64.sh -p /miniconda -b
RUN rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH=/miniconda/bin:${PATH}
RUN conda update -y conda && \
conda update -y pip && \
conda install -y python=3.7.6 numpy scipy git && \
pip install --upgrade pip && \
pip install pymmcore imageio scikit-image imjoy imjoy-rpc jupyter