forked from NETWAYS/check_interfaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (25 loc) · 660 Bytes
/
Dockerfile
File metadata and controls
27 lines (25 loc) · 660 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
FROM debian:stable-slim as builder
WORKDIR /src
ENV LANG="C.UTF-8"
ENV TERM=xterm
ARG target=""
ONBUILD ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y \
build-essential \
autoconf \
libsnmp-dev \
&& rm -rf /var/lib/apt/lists/*
COPY . .
COPY ./README.md ./README
RUN ls -R \
&& ./configure --libexecdir=/src \
&& make $target
FROM debian:stable-slim
ONBUILD ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y \
libsnmp40 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=0 /src/check_interfaces /check_interfaces
ENTRYPOINT ["/check_interfaces"]