From bd95b131f6267d07a103e90fbe24b4fa03eebac9 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 1 Sep 2022 14:40:08 +0200 Subject: [PATCH] Remove git clone from container. Run custom build script --- alpine-build.dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/alpine-build.dockerfile b/alpine-build.dockerfile index 8d5300f..7646504 100644 --- a/alpine-build.dockerfile +++ b/alpine-build.dockerfile @@ -3,14 +3,11 @@ FROM alpine:3.16.2 # Install necessary packages -RUN apk add git \ # download - dotnet6-sdk npm # build +RUN apk add git \ + dotnet6-sdk npm -# Clone repo -#RUN git clone https://github.com/Kareadita/Kavita.git -RUN git clone https://github.com/RealStickman/Kavita.git && \ - cd Kavita && \ - git checkout rs_alpine +# copy download & build script +COPY ["alpine_build.sh","/"] ENTRYPOINT [ "/bin/ash" ] -CMD [ "build.sh linux-musl-x64" ] # call build script here +CMD [ "alpine_build.sh" ] # call build script here