Actualizacion procedimiento compilacion

This commit is contained in:
luisgulo 2023-06-06 08:42:47 +02:00
parent dd6390cbbd
commit 8c65f14b08
2 changed files with 20 additions and 4 deletions

View file

@ -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 <luisgulo@gmail.com>
# 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

View file

@ -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