Skip to content

Commit

Permalink
Use entrypoint script
Browse files Browse the repository at this point in the history
This seems to get around issues with running xvfb-run with a command.
  • Loading branch information
icy-arctic-fox committed Jun 6, 2019
1 parent 212fb80 commit a64c9ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ RUN git clone -b $GLFW_VERSION https://github.com/glfw/glfw.git && \
RUN groupadd -r build && \
useradd --no-log-init -m -r -g build build

COPY entrypoint.sh /entrypoint.sh

USER build
WORKDIR /home/build
ENTRYPOINT ["/bin/sh", "-c", "/usr/bin/xvfb-run -a -s '-screen 0 1280x720x24' $@", ""]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["fluxbox"]
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e

readonly resolution=1280x720x24

xvfb-run -a -s "-screen 0 ${resolution}" "$@"

0 comments on commit a64c9ff

Please sign in to comment.