Change ENV to ARG

This commit is contained in:
RealStickman 2022-09-04 16:32:34 +02:00
parent 3a096eaf42
commit dcad6a10a6

View File

@ -2,7 +2,8 @@
FROM alpine:3.16.2
ENV KAVITA_VERSION="0.5.6"
# build variables
ARG KAVITA_VERSION="0.5.6"
# use musl package
RUN wget https://github.com/Kareadita/Kavita/releases/download/v${KAVITA_VERSION}/kavita-linux-musl-x64.tar.gz -O kavita-linux-musl-x64.tar.gz
@ -17,7 +18,6 @@ RUN mv /Kavita /kavita
RUN rm kavita-linux-musl-x64.tar.gz
# in /etc/apk/repositories
# enable 3.16/community repo
# enable edge/testing repo (with tag @testing)
# https://wiki.alpinelinux.org/wiki/Package_management#Repository_pinning
RUN echo '@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories