Add dockerfile

This commit is contained in:
Jake Howard 2022-05-31 14:49:55 +01:00
parent 258923eb32
commit f2c478757f
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 9 additions and 0 deletions

1
.dockerignore Symbolic link
View File

@ -0,0 +1 @@
./.gitignore

8
Dockerfile Normal file
View 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" ]