Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nailgun committed Sep 1, 2017
1 parent 0c55521 commit cdeaf01
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Dockerfile
@@ -0,0 +1,14 @@
FROM gcc as build

WORKDIR /usr/src
COPY . .

ENV CFLAGS -static
RUN make

###

FROM scratch
COPY --from=build /usr/src/earlyoom /

ENTRYPOINT ["/earlyoom"]
2 changes: 1 addition & 1 deletion Makefile
@@ -1,5 +1,5 @@
VERSION ?= $(shell git describe --tags --dirty)
CFLAGS = -Wall -Wextra -DVERSION=\"$(VERSION)\" -g
CFLAGS += -Wall -Wextra -DVERSION=\"$(VERSION)\" -g

.PHONY: earlyoom
earlyoom:
Expand Down

0 comments on commit cdeaf01

Please sign in to comment.