-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 837 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
34
35
36
37
38
39
40
# Stage 1: Build
FROM debian:bookworm AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
gettext \
zlib1g-dev \
libbz2-dev \
libomp-dev \
libpthread-stubs0-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Clone your repo
RUN git clone --recurse-submodules https://github.com/RNABioInfo/mcaat.git .
RUN mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
make -j$(nproc)
# Stage 2: Runtime
FROM debian:bookworm-slim
# Install runtime dependencies
RUN apt-get update && apt-get install -y \
libomp5 \
zlib1g \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy binary from builder
COPY --from=builder /app/build/mcaat /usr/local/bin/mcaat
# Set default command
ENTRYPOINT ["mcaat"]