Add dockerfile
This commit is contained in:
parent
258923eb32
commit
f2c478757f
2 changed files with 9 additions and 0 deletions
1
.dockerignore
Symbolic link
1
.dockerignore
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
./.gitignore
|
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM alpine:latest as builder
|
||||||
|
RUN apk add --no-cache build-base
|
||||||
|
COPY noop.c Makefile ./
|
||||||
|
RUN make
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=builder /noop /
|
||||||
|
CMD [ "/noop" ]
|
Loading…
Reference in a new issue