-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
42 lines (33 loc) · 1.05 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
# Use an official Python image as the base
FROM python:3.11-slim
# Set environment variables to reduce Python output
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
wget \
curl \
tree \
build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install sra-tools
RUN wget https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-ubuntu64.tar.gz \
&& tar -xzvf sratoolkit.current-ubuntu64.tar.gz \
&& mkdir -p /usr/local/sra-tools \
&& mv sratoolkit.* /usr/local/sra-tools \
&& ln -s /usr/local/sra-tools/bin/* /usr/local/bin/ \
&& rm -f sratoolkit.current-ubuntu64.tar.gz
# Set the working directory
WORKDIR /app
# Copy the pyproject.toml
COPY pyproject.toml /app/
# Install the dependencies
RUN pip install --upgrade pip setuptools wheel \
&& pip install .
# Copy the source code
COPY SRAgent/ /app/SRAgent/
# Install the package
RUN pip install .
# Set the default entry point for the container
ENTRYPOINT ["SRAgent"]