-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (28 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
33 lines (28 loc) · 852 Bytes
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
# Build environment for Bio-Engine
FROM python:3.10-bullseye
# Install system dependencies for build tools and bio-libraries
RUN apt-get update && apt-get install -y \
build-essential \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
libssl-dev \
libsqlite3-dev \
tk-dev \
libgdbm-dev \
libc6-dev \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir pyinstaller
# Copy the rest of the application
COPY . .
# Default command: build the binary
# The user can run this image and then 'docker cp' the dist folder
CMD ["pyinstaller", "bio-engine.spec"]