-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathDockerfile
62 lines (53 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
54
55
56
57
58
59
60
61
62
FROM python:3.11-slim
# Set environment variables
ENV POETRY_VERSION=2.0.1 \
PYTHONUNBUFFERED=1 \
POETRY_NO_INTERACTION=1 \
PATH="/root/.local/bin:$PATH"
# Install system dependencies, Poetry, STAR, and Samtools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
libpq-dev \
libffi-dev \
libssl-dev \
git \
gcc \
wget \
unzip \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libncurses5-dev \
&& wget https://github.com/alexdobin/STAR/archive/refs/tags/2.7.10b.zip \
&& unzip 2.7.10b.zip \
&& cd STAR-2.7.10b/source \
&& make STAR \
&& mv STAR /usr/local/bin/ \
&& mkdir -p /app \
&& cd /app \
&& wget https://github.com/samtools/samtools/releases/download/1.17/samtools-1.17.tar.bz2 \
&& tar -xjf samtools-1.17.tar.bz2 \
&& cd samtools-1.17 \
&& ./configure \
&& make \
&& make install \
&& cd /app \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* 2.7.10b.zip STAR-2.7.10b samtools-1.17 samtools-1.17.tar.bz2
# Install Poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
# Set working directory
WORKDIR /app
# Copy project files
COPY pyproject.toml poetry.lock README.md /app/
# Install dependencies using Poetry
RUN poetry install --no-root --only main
# Copy the entire project
COPY . /app
# Ensure scripts are executable
RUN chmod +x /app/stpipeline/scripts/*.py
# Set entrypoint for the container
ENTRYPOINT ["poetry", "run"]