-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from koct9i/workflows
Add Dockerfile
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.o | ||
/ioping | ||
/ioping.exe | ||
/ucrt-spec | ||
/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
*.o | ||
/ioping | ||
/ioping.exe | ||
/ucrt-spec | ||
/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 / | ||
|
||
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters