From 8c65f14b08e56e1dd7d8c942888774a32fe73297 Mon Sep 17 00:00:00 2001 From: luisgulo Date: Tue, 6 Jun 2023 08:42:47 +0200 Subject: [PATCH] Actualizacion procedimiento compilacion --- Dockerfile | 6 +++--- README.md | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18529df..c93799d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # FIREFOX WITH ANONIMOUS USER -# VERSION 86.0.1 -FROM debian:buster-slim +# VERSION 113.0.2 +FROM debian:bullseye-slim MAINTAINER Luis GL # Todo actualizado RUN apt -y update; apt -y upgrade @@ -14,7 +14,7 @@ ENV LC_ALL es_ES.UTF-8 # Repositorio SoloConLinux RUN wget https://repositorio.soloconlinux.org.es/soloconlinux.list -O /etc/apt/sources.list.d/soloconlinux.list # Clave GPG SoloConLinux -RUN wget -qO - https://repositorio.soloconlinux.org.es/repo-gpg.key | apt-key add - +RUN wget -qO - https://repositorio.soloconlinux.org.es/repo-gpg.key -O /usr/share/keyrings/repositorio-archive-keyring.gpg RUN apt -y update; apt -y install firefox; apt-get clean RUN GID=1000; UID=1000; UNAME=anonimo; mkdir -p /home/$UNAME; echo "$UNAME:x:${UID}:${GID}:Developer,,,:/home/$UNAME:/bin/bash" >> /etc/passwd; echo "$UNAME:x:${UID}:" >> /etc/group; chown ${UID}:${GID} -R /home/$UNAME USER anonimo diff --git a/README.md b/README.md index bd12ff7..5d642c8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,26 @@ # firefox-docker + +**BUILD IMAGE** + +docker build --tag firefox:$(grep 'VERSION' Dockerfile |awk '{print $3}') . + +Re-Tag image: + +docker tag firefox:$(grep 'VERSION' Dockerfile |awk '{print $3}') firefox:latest + **LAUNCH FIREFOX** To launch Firefox from the container run the command: ~~~ -docker run -ti --rm -e DISPLAY=$DISPLAY.0 -v /tmp/.X11-unix:/tmp/.X11-unix luisgutierrez/firefox:86.0.1 + +RUN from local image (your build): + +docker run -ti --rm -e DISPLAY=$DISPLAY.0 -v /tmp/.X11-unix:/tmp/.X11-unix firefox:latest + +RUN from my image (my build): + +docker run -ti --rm -e DISPLAY=$DISPLAY.0 -v /tmp/.X11-unix:/tmp/.X11-unix luisgutierrez/firefox:latest ~~~ It is not necessary to invoke Firefox, it is launched automatically when executing the container