-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 776 Bytes
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 776 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
# Stage 1: Build
FROM ubuntu:22.04 AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
zlib1g-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 .. && \
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"]