Created
April 28, 2019 14:45
-
-
Save outloudvi/e6f82f588cef8149bf22118ba234fe08 to your computer and use it in GitHub Desktop.
A simple Firefox sandbox with Docker.
This file contains 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
FROM ubuntu:19.04 | |
RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \ # Optional | |
sed -i 's/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \ # Optional | |
apt-get update && apt-get install -y firefox fonts-noto-cjk && \ | |
useradd -m developer | |
USER developer | |
ENV HOME /home/developer | |
CMD /usr/bin/firefox -ProfileManager | |
# docker build . -t firefox:disco | |
# docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix firefox:disco | |
# Adapted from http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment