fix alpine docker

pull/698/head
Mister_X 3 weeks ago
parent 09e60ea5c9
commit 3dfcb2bdfd

@ -23,7 +23,7 @@ jobs:
- tag: "" # Default Dockerfile - tag: "" # Default Dockerfile
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
- tag: alpine - tag: alpine
platforms: linux/amd64 platforms: linux/amd64,linux/arm64
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

@ -1,14 +1,44 @@
# Build a docker image from latest YaCy sources on Alpine Linux # Build a docker image from latest YaCy sources on Alpine Linux
# Base image : latest stable official jdk 11 image from Docker based on Alpine Linux # Base image : latest stable official jdk 11 image from Docker based on Alpine Linux
FROM eclipse-temurin:17-alpine FROM surnet/alpine-wkhtmltopdf:3.21.2-0.12.6-full as wkhtmltopdf
FROM eclipse-temurin:21-alpine-3.21
# trace java version # trace java version
RUN java -version RUN java -version
# Install dependencies for wkhtmltopdf
RUN apk add --no-cache \
libstdc++ \
libx11 \
libxrender \
libxext \
libssl3 \
ca-certificates \
fontconfig \
freetype \
ttf-dejavu \
ttf-droid \
ttf-freefont \
ttf-liberation \
# more fonts
&& apk add --no-cache --virtual .build-deps \
msttcorefonts-installer \
# Install microsoft fonts
&& update-ms-fonts \
&& fc-cache -f \
# Clean up when done
&& rm -rf /tmp/* \
&& apk del .build-deps
# Copy wkhtmltopdf files from docker-wkhtmltopdf image
COPY --from=wkhtmltopdf /bin/wkhtmltopdf /bin/wkhtmltopdf
COPY --from=wkhtmltopdf /bin/wkhtmltoimage /bin/wkhtmltoimage
COPY --from=wkhtmltopdf /lib/libwkhtmltox* /lib/
# Install needed packages not in base image # Install needed packages not in base image
# (curl for sh scripts in /bin, imagemagick, xvfb, ghostscript, wkhtmltopdf, and apache-ant for building) # (curl for sh scripts in /bin, imagemagick, xvfb, ghostscript, wkhtmltopdf, and apache-ant for building)
RUN apk add --no-cache curl imagemagick xvfb ghostscript wkhtmltopdf apache-ant RUN apk add --no-cache curl imagemagick xvfb ghostscript apache-ant
# set current working dir # set current working dir
WORKDIR /opt WORKDIR /opt

Loading…
Cancel
Save