This repository has been archived on 2023-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
container-kavita-alpine/alpine.dockerfile

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-09-01 16:09:30 +02:00
# This Dockerfile creates an alpine container for x64 architectures
2022-09-01 16:09:30 +02:00
FROM alpine:3.16.2
2022-09-01 16:09:30 +02:00
ENV KAVITA_VERSION="0.5.5"
2022-09-01 16:09:30 +02:00
# 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
2022-09-01 16:09:30 +02:00
# extract release
RUN tar xf kavita-linux-musl-x64.tar.gz
2022-09-01 16:09:30 +02:00
# remove archive
RUN rm kavita-linux-musl-x64.tar.gz
2022-08-30 19:02:29 +02:00
# 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
2022-09-01 16:09:30 +02:00
RUN echo '@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
2022-08-30 19:02:29 +02:00
2022-09-01 16:09:30 +02:00
# install kavita dependencies
2022-08-30 19:02:29 +02:00
RUN apk add \
icu-dev libssl1.1 curl \
libgdiplus@testing
2022-09-01 16:09:30 +02:00
# get entrypoint script from my repo
RUN wget https://github.com/RealStickman/Kavita/blob/rs_alpine/entrypoint.sh -O /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN ls -l /
RUN ls -l /Kavita
2022-09-01 16:09:30 +02:00
EXPOSE 5000/tcp
2022-09-01 16:09:30 +02:00
# change working directory to "/Kavita"
WORKDIR /Kavita
2022-09-01 09:19:16 +02:00
ENTRYPOINT [ "/bin/ash" ]
CMD ["/entrypoint.sh"]