|
|
|
@ -2,7 +2,9 @@ FROM ruby:3.2.2-alpine3.18 as fonts
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /fonts
|
|
|
|
WORKDIR /fonts
|
|
|
|
|
|
|
|
|
|
|
|
RUN apk --no-cache add wget && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Bold.ttf && wget https://github.com/impallari/DancingScript/raw/master/fonts/DancingScript-Regular.otf && wget https://github.com/impallari/DancingScript/raw/master/OFL.txt
|
|
|
|
RUN apk --no-cache add fontforge wget && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf && wget https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Bold.ttf && wget https://github.com/impallari/DancingScript/raw/master/fonts/DancingScript-Regular.otf && wget https://cdn.jsdelivr.net/gh/notofonts/notofonts.github.io/fonts/NotoSansSymbols2/hinted/ttf/NotoSansSymbols2-Regular.ttf && wget https://github.com/Maxattax97/gnu-freefont/raw/master/ttf/FreeSans.ttf && wget https://github.com/impallari/DancingScript/raw/master/OFL.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN fontforge -lang=py -c 'font1 = fontforge.open("FreeSans.ttf"); font2 = fontforge.open("NotoSansSymbols2-Regular.ttf"); font1.mergeFonts(font2); font1.generate("FreeSans.ttf")'
|
|
|
|
|
|
|
|
|
|
|
|
FROM ruby:3.2.2-alpine3.18 as webpack
|
|
|
|
FROM ruby:3.2.2-alpine3.18 as webpack
|
|
|
|
|
|
|
|
|
|
|
|
@ -38,7 +40,7 @@ ENV PIDFILE=/dev/null
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
RUN apk add --no-cache build-base sqlite-dev libpq-dev mariadb-dev vips-dev vips-poppler poppler-utils vips-heif libc6-compat ttf-freefont && mkdir /fonts
|
|
|
|
RUN apk add --no-cache build-base sqlite-dev libpq-dev mariadb-dev vips-dev vips-poppler poppler-utils vips-heif libc6-compat ttf-freefont && mkdir /fonts && rm /usr/share/fonts/freefont/FreeSans.otf
|
|
|
|
|
|
|
|
|
|
|
|
COPY ./Gemfile ./Gemfile.lock ./
|
|
|
|
COPY ./Gemfile ./Gemfile.lock ./
|
|
|
|
|
|
|
|
|
|
|
|
@ -55,6 +57,7 @@ COPY ./tmp ./tmp
|
|
|
|
COPY LICENSE README.md Rakefile config.ru .version ./
|
|
|
|
COPY LICENSE README.md Rakefile config.ru .version ./
|
|
|
|
|
|
|
|
|
|
|
|
COPY --from=fonts /fonts/GoNotoKurrent-Regular.ttf /fonts/GoNotoKurrent-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts
|
|
|
|
COPY --from=fonts /fonts/GoNotoKurrent-Regular.ttf /fonts/GoNotoKurrent-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts
|
|
|
|
|
|
|
|
COPY --from=fonts /fonts/FreeSans.ttf /usr/share/fonts/freefont
|
|
|
|
COPY --from=webpack /app/public/packs ./public/packs
|
|
|
|
COPY --from=webpack /app/public/packs ./public/packs
|
|
|
|
|
|
|
|
|
|
|
|
RUN ln -s /fonts /app/public/fonts
|
|
|
|
RUN ln -s /fonts /app/public/fonts
|
|
|
|
|