From 233429c77ff1477a7d63ed076b89f2c3f0b988b9 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Thu, 12 Dec 2024 15:21:59 +0100 Subject: [PATCH] fix: dockerfile use git repo and subdir --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 41d6a3cca..6b56fa951 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,16 +5,14 @@ FROM alpine:latest -COPY lib /lib -COPY src /src -COPY build /build -COPY Makefile Makefile - -RUN apk add --no-cache linux-headers build-base cmake readline-dev +RUN apk add --no-cache linux-headers build-base cmake readline-dev git +RUN mkdir -p /zenroom +RUN git config --global http.version HTTP/1.1 && git clone --depth 1 https://github.com/dyne/zenroom +WORKDIR /zenroom RUN make musl COMPILER=gcc RELEASE=1 RUN mkdir -p /usr/local/bin/ RUN cp zenroom /usr/local/bin/ RUN cp zencode-exec /usr/local/bin/ -ENTRYPOINT ["zenroom"] +ENTRYPOINT ["/usr/local/bin/zenroom"]