mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-11 21:49:16 +02:00
11 lines
307 B
Docker
11 lines
307 B
Docker
FROM alpine as builder
|
|
WORKDIR /build
|
|
RUN apk update && apk upgrade && apk add alpine-sdk linux-headers libressl-dev flex bison
|
|
COPY *.c *.h lex.l parse.y Makefile ./
|
|
RUN make gmid
|
|
|
|
FROM alpine
|
|
RUN apk update && apk upgrade && apk add libressl
|
|
COPY --from=builder /build/gmid /bin/gmid
|
|
ENTRYPOINT /bin/gmid
|