-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (42 loc) · 1.48 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
54
55
56
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
apt-utils make gcc build-essential libgtk-3-dev \
python3-pip openjdk-11-jdk-headless
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
ENV PATH=$PATH:/home/ubuntu/.local/bin
RUN apt-get -y install \
default-libmysqlclient-dev libnotify-dev libsdl2-dev sqlite3 \
automake \
autotools-dev \
g++ \
git \
libcurl4-gnutls-dev wget \
libfuse-dev \
libssl-dev \
libxml2-dev \
pkg-config \
sysstat \
curl
RUN wget https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04/wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
RUN pip3 install wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
RUN git clone https://github.com/CellProfiler/CellProfiler.git && \
cd CellProfiler && git checkout v4.2.4 && \
pip3 install .
WORKDIR /usr/local/src
RUN git clone https://github.com/s3fs-fuse/s3fs-fuse.git
WORKDIR /usr/local/src/s3fs-fuse
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
# Install AWS CLI, boto3, and pandas
RUN pip3 install awscli boto3 pandas
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt
RUN git clone https://github.com/CellProfiler/CellProfiler-plugins.git
WORKDIR /home/ubuntu/CellProfiler-plugins
WORKDIR /hummingbird
COPY server /hummingbird
CMD ["python3", "server.py"]
# CMD ["gunicorn", "--timeout=180", "--workers=20", "--bind=0.0.0.0:8081", "--access-logfile=-", "server:app"]