diff --git a/Dockerfile b/Dockerfile index 1d9b82f..45d9743 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ WORKDIR /opt/narou RUN apk --update add ruby ruby-io-console ruby-json wget unzip && rm -rf /var/cache/apk/* RUN wget https://github.com/jam7/AozoraEpub3/releases/download/1.1.0b46/${AOZORA_EPUB3} -O /opt/AozoraEpub3.zip +RUN wget https://github.com/jam7/AozoraEpub3/releases/download/openjdk-support/AozoraEpub3.jar -O /opt/AozoraEpub3.jar RUN wget http://kindlegen.s3.amazonaws.com/${KINDLEGEN} && \ mkdir -p /opt/kindlegen && \ diff --git a/init.sh b/init.sh index b1ead3c..9966bb4 100755 --- a/init.sh +++ b/init.sh @@ -2,6 +2,7 @@ if [ ! -d "/opt/narou/.narou" ]; then unzip -q /opt/AozoraEpub3.zip -d /opt/narou/AozoraEpub3 + cp /opt/AozoraEpub3.jar /opt/narou/AozoraEpub3 ln -s /opt/kindlegen/kindlegen /opt/AozoraEpub3 narou init -p /opt/narou/AozoraEpub3 narou setting device=kindle