From c7fa98270357572f5212a3b1abcb5eaccc30d217 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 30 Aug 2022 19:02:29 +0200 Subject: [PATCH] Add some packages --- alpine.dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/alpine.dockerfile b/alpine.dockerfile index c8e0905..30fbf0a 100644 --- a/alpine.dockerfile +++ b/alpine.dockerfile @@ -1,7 +1,8 @@ #This Dockerfile creates a build for all architectures #Image that copies in the files and passes them to the main image -FROM ubuntu:focal AS copytask +FROM alpine:3.16.2 AS copytask +#FROM ubuntu:focal AS copytask ARG TARGETPLATFORM @@ -13,7 +14,8 @@ COPY copy_runtime.sh /copy_runtime.sh RUN /copy_runtime.sh #Production image -FROM ubuntu:focal +FROM alpine:3.16.2 AS copytask +#FROM ubuntu:focal COPY --from=copytask /Kavita /kavita COPY --from=copytask /files/wwwroot /kavita/wwwroot @@ -23,6 +25,15 @@ RUN apt-get update \ && apt-get install -y libicu-dev libssl1.1 libgdiplus curl \ && rm -rf /var/lib/apt/lists/* +# 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 apk add \ + icu-dev libssl1.1 curl \ + libgdiplus@testing + COPY entrypoint.sh /entrypoint.sh EXPOSE 5000