-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathDockerfile
43 lines (32 loc) · 831 Bytes
/
Dockerfile
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
41
42
43
FROM alpine:latest as alpine-build
RUN apk --no-cache add make gcc musl-dev linux-headers
WORKDIR /src
COPY . .
RUN make static
FROM scratch AS alpine-bin
COPY --from=alpine-build /src/ioping /
###
FROM debian:latest as debian-build
RUN apt update && apt install -y --no-install-recommends make gcc libc6-dev
WORKDIR /src
COPY . .
RUN make static
FROM scratch AS debian-bin
COPY --from=debian-build /src/ioping /
###
FROM fedora:latest as fedora-build
RUN dnf install -y make gcc glibc-static
WORKDIR /src
COPY . .
RUN make static
FROM scratch AS fedora-bin
COPY --from=fedora-build /src/ioping /
###
FROM ubuntu:latest as ubuntu-build
RUN apt update && apt install -y --no-install-recommends make gcc libc6-dev
WORKDIR /src
COPY . .
RUN make static
FROM scratch AS ubuntu-bin
COPY --from=ubuntu-build /src/ioping /
###