Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
msokk committed Feb 15, 2016
1 parent 8ebbe72 commit 1d3b695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /app
# Install the packages needed to run Electron
RUN npm install --production && \
sed -i 's/main/main contrib/g' /etc/apt/sources.list && \
apt-get update && apt-get upgrade && apt-get install -y xvfb \
apt-get update && apt-get upgrade -y && apt-get install -y xvfb \
libgtk2.0-0 ttf-mscorefonts-installer libnotify4 libgconf2-4 libnss3 dbus-x11 && \
apt-get clean && rm -rf /var/lib/apt/lists/*

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Based on official [Node.js Jessie](https://hub.docker.com/_/node/) image, uses l
1. `docker run -t -e RENDERER_ACCESS_KEY=secret -p 3000:3000 msokk/electron-render-service`
2. `wget -o out.pdf http://<node_address>:3000/pdf?url=https://github.com/msokk/electron-render-service&access_key=secret`

> NB: Set bigger tmp filesystem size `--shm-size=Xm` (default: `64m`) if dealing with very heavy pages.
> Note: Add `--security-opt seccomp:unconfined` to supress `libudev: udev_has_devtmpfs: name_to_handle_at on /dev: Operation not permitted` warning.

Expand Down

0 comments on commit 1d3b695

Please sign in to comment.