Remove git clone from container. Run custom build script

This commit is contained in:
RealStickman 2022-09-01 14:40:08 +02:00
parent 23558498dd
commit bd95b131f6

View File

@ -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