Commit 260aa042 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

N'installe pas drawio dans le Docker.

parent a6bf7749
ARG NODE_VERSION=14
ARG NODE_VERSION=12
ARG DEBIAN_RELEASE=buster
FROM node:${NODE_VERSION}-${DEBIAN_RELEASE} AS builder
......@@ -20,18 +20,7 @@ COPY --from=builder /src/reveal.js/plz-out/gen/reveal.js /opt/reveal.js
RUN apt-get update -yq \
&& apt-get install -yq --no-install-recommends \
libappindicator3-1 \
libasound2 \
libatspi2.0-0 \
libgtk-3-0 \
libnotify4 \
libnss3 \
libsecret-1-0 \
libx11-xcb1 \
libxss1 \
libxtst6 \
wget \
xdg-utils \
xfonts-75dpi \
xfonts-base \
&& find /var/*/apt -type f -delete
......@@ -43,11 +32,6 @@ RUN wget -nv -O /tmp/pandoc.tar.gz https://github.com/jgm/pandoc/releases/downlo
&& rm /tmp/pandoc.tar.gz \
&& pandoc --version
ARG DRAWIO_VERSION=13.0.3
RUN wget -nv -O /tmp/draw.io.deb https://github.com/jgraph/drawio-desktop/releases/download/v${DRAWIO_VERSION}/draw.io-amd64-${DRAWIO_VERSION}.deb \
&& dpkg -i /tmp/draw.io.deb \
&& rm /tmp/draw.io.deb
ARG WKHTMLTOPDF_VERSION=0.12.5
ARG DEBIAN_RELEASE=buster
RUN wget -nv -O /tmp/wkhtmltox.deb https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_${WKHTMLTOPDF_VERSION}-1.${DEBIAN_RELEASE}_amd64.deb \
......@@ -71,8 +55,7 @@ ENV SERVER_HOST=0.0.0.0 \
SERVER_PORT=3000 \
SRC=/src \
OUTPUT=/public \
WKHTMLTOPDF_BINARY=/usr/local/bin/wkhtmltopdf \
DRAWIO_BINARY=/opt/draw.io/drawio
WKHTMLTOPDF_BINARY=/usr/local/bin/wkhtmltopdf
RUN mkdir -p -m 0777 $OUTPUT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment