Skip to content

Commit

Permalink
Fixed image export docker (#docker-drawio-128 & 144)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohamedin committed Jan 2, 2024
1 parent 136366d commit fb14264
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions image-export/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,27 @@ RUN apt-get update \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg \
&& sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 dbus dbus-x11 \
--no-install-recommends \
&& service dbus start \
&& wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.8_all.deb \
&& apt install -y --no-install-recommends \
./ttf-mscorefonts-installer_3.8_all.deb \
&& groupadd -r pptruser && useradd -rm -g pptruser -G audio,video pptruser \
&& cd /home/pptruser \
&& git clone https://github.com/jgraph/draw-image-export2.git \
&& cd draw-image-export2 \
&& npm install \
&& chown -R pptruser:pptruser /home/pptruser \
&& apt-get remove -y --purge git wget \
&& rm -rf /var/lib/apt/lists/*

USER pptruser

ENV DBUS_SESSION_BUS_ADDRESS autolaunch:

WORKDIR /home/pptruser/draw-image-export2

RUN npm install

EXPOSE 8000

CMD ["npm", "start"]

1 comment on commit fb14264

@davidjgraph
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed.

Please sign in to comment.