Optimize nupack service startup and compute
This commit is contained in:
commit
e1b3156754
25 changed files with 9435 additions and 0 deletions
48
Dockerfile
Normal file
48
Dockerfile
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV NP_HOST=0.0.0.0
|
||||
ENV NP_PORT=18765
|
||||
ENV ENABLE_RNAPLOT=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
autoconf \
|
||||
automake \
|
||||
build-essential \
|
||||
libgsl-dev \
|
||||
libtool \
|
||||
pkg-config \
|
||||
perl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY nupack/vendor/nupack-4.0.2.0/package /tmp/nupack-package
|
||||
COPY rna/ViennaRNA-2.7.2.tar.gz /tmp/ViennaRNA-2.7.2.tar.gz
|
||||
|
||||
RUN cd /tmp \
|
||||
&& tar -xzf ViennaRNA-2.7.2.tar.gz \
|
||||
&& cd ViennaRNA-2.7.2 \
|
||||
&& ./configure --without-python --without-perl \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& ldconfig \
|
||||
&& rm -rf /tmp/ViennaRNA-2.7.2 /tmp/ViennaRNA-2.7.2.tar.gz
|
||||
|
||||
RUN python -m pip install --no-cache-dir \
|
||||
numpy \
|
||||
scipy \
|
||||
pandas \
|
||||
pyyaml \
|
||||
jinja2 \
|
||||
/tmp/nupack-package/nupack-4.0.2.0-cp312-cp312-linux_x86_64.whl
|
||||
|
||||
RUN python -m pip install --no-cache-dir redis
|
||||
|
||||
WORKDIR /app/service
|
||||
COPY service /app/service
|
||||
|
||||
EXPOSE 18765
|
||||
|
||||
CMD ["python", "server.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue