-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 782 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
# syntax=docker/dockerfile:1
FROM debian:bookworm-slim AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
make \
autoconf \
automake \
libtool \
pkg-config \
libmariadb-dev \
libsnmp-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN autoreconf -fi \
&& ./configure --prefix=/usr/local \
&& make -j"$(nproc)" spine
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libmariadb3 \
libsnmp40 \
libssl3 \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /src/spine /usr/local/bin/spine
RUN mkdir -p /etc/spine
ENTRYPOINT ["/usr/local/bin/spine"]