-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 \ | ||
&& npm install -g [email protected] --unsafe-perm=true \ | ||
\ | ||
# 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 [email protected] --unsafe-perm=true | ||
|
||
ENTRYPOINT ["pandoc", "-F", "mermaid-filter", "-o"] |