Add some packages

This commit is contained in:
RealStickman 2022-08-30 19:02:29 +02:00
parent bce6c8d3c9
commit c7fa982703

View File

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