Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tssge committed Nov 13, 2023
1 parent 456dca5 commit cb5c553
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
FROM pandoc/latex:2.13
FROM pandoc/latex:edge-alpine

WORKDIR /action/workspace

RUN apk add --update npm bash gmp-dev librsvg-dev
RUN npm install -g [email protected] --unsafe-perm=true
ENV CHROME_BIN="/usr/bin/chromium-browser" \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

RUN set -x \
&& apk update \
&& apk upgrade \
# replacing default repositories with edge ones
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" > /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
\
# Add the packages
&& apk add --no-cache dumb-init curl make gcc g++ python3 linux-headers binutils-gold gnupg libstdc++ nss chromium \
npm bash \
\
# Do some cleanup
&& apk del --no-cache make gcc g++ python3 binutils-gold gnupg libstdc++ \
&& rm -rf /usr/include \
&& rm -rf /var/cache/apk/* /root/.node-gyp /usr/share/man /tmp/* \
&& echo
RUN npm install -g puppeteer chromium https://github.com/drnachio/mermaid-filter-docker-ready --unsafe-perm=true \
--allow-root

ENTRYPOINT ["pandoc", "-F", "mermaid-filter", "-o"]

0 comments on commit cb5c553

Please sign in to comment.