Created
October 14, 2015 21:29
-
-
Save tommynyquist/11321acb1f59bde080a7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
### Dockerfile | |
FROM ubuntu | |
RUN apt-get update && apt-get install -yq xvfb | |
ADD xvfb-run-wrapper.sh /bin/xvfb-run-wrapper.sh | |
RUN chmod +x /bin/xvfb-run-wrapper.sh | |
ENTRYPOINT ["/bin/xvfb-run-wrapper.sh", "/bin/sleep"] | |
CMD ["10000"] | |
### | |
### xvfb-run-wrapper.sh | |
#!/bin/sh | |
( | |
/usr/bin/xvfb-run -a $@ | |
) | |
### | |
$ docker run dockersleep | |
$ docker run dockersleep 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I remake this gist without intermediate
xvfb-run-wrapper.sh