Add Dockerfile and first attempt at CI

This commit is contained in:
Yaakov 2022-05-29 22:02:51 +10:00
parent 0245ab71c8
commit 4915208029
3 changed files with 57 additions and 1 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM alpine:latest as build
RUN apk --no-cache add make gcc musl-dev linux-headers nettle-dev
WORKDIR /build
COPY . /build
RUN make
FROM alpine:latest as runtime
RUN apk --no-cache add nettle
COPY --from=build /build/elproxy /app/elproxy
CMD [ "sh", "-c", "/app/elproxy $ELPROXY_CONFIG $ELPROXY_DEBUG" ]