Skip to content

Commit

Permalink
fix: Docker dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan committed Mar 13, 2023
1 parent fd596da commit c53917c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.
29 changes: 10 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
FROM debian:buster-slim AS nmrxiv-python-ms
FROM debian:buster-20230227-slim AS cheminf-python-ms

# Install runtime dependencies
RUN apt-get update \
&& apt-get install -yq --no-install-recommends \
libboost-atomic1.67.0 \
libboost-chrono1.67.0 \
libboost-date-time1.67.0 \
libboost-iostreams1.67.0 \
libboost-python1.67.0 \
libboost-regex1.67.0 \
libboost-serialization1.67.0 \
libboost-system1.67.0 \
libboost-thread1.67.0 \
libcairo2-dev \
python3-dev \
python3-numpy \
python3-cairo \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
python3 \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -24,17 +13,19 @@ RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-get update -y && \
apt-get install -y openjdk-11-jre


RUN python3 -m pip install -U pip

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/
RUN export JAVA_HOME

WORKDIR /code

RUN python3 -m pip install -U pip

COPY ./requirements.txt /code/requirements.txt
RUN pip3 install --upgrade setuptools pip
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip3 install --no-cache-dir -r /code/requirements.txt
RUN python3 -m pip uninstall -y imantics
RUN pip3 install imantics==0.1.12
RUN pip3 install --no-deps decimer-segmentation
RUN pip3 install --no-deps decimer>=2.2.0
RUN pip3 install --no-deps STOUT-pypi>=2.0.5
Expand Down
17 changes: 9 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ psycopg2>=2.7,<2.8
fastapi-pagination==0.10.0
rdkit-pypi>=2022.09.4
websockets==10.4
pillow
opencv-python
matplotlib
pillow==9.4.0
opencv-python==4.7.0.68
jpype1==1.4.1
matplotlib==3.4.3
scikit-image
imantics
pdf2image
pdf2image==1.16.2
IPython
pystow
unicodedata2
pystow>=0.4.9
unicodedata2==15.0.0
efficientnet
tensorflow==2.10.0
tensorflow==2.10.0
pyheif==0.7.1

0 comments on commit c53917c

Please sign in to comment.