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 FROM alpine:3.16.2
# Install necessary packages # Install necessary packages
RUN apk add git \ # download RUN apk add git \
dotnet6-sdk npm # build dotnet6-sdk npm
# Clone repo # copy download & build script
#RUN git clone https://github.com/Kareadita/Kavita.git COPY ["alpine_build.sh","/"]
RUN git clone https://github.com/RealStickman/Kavita.git && \
cd Kavita && \
git checkout rs_alpine
ENTRYPOINT [ "/bin/ash" ] ENTRYPOINT [ "/bin/ash" ]
CMD [ "build.sh linux-musl-x64" ] # call build script here CMD [ "alpine_build.sh" ] # call build script here