Last active
October 27, 2020 12:40
-
-
Save estefafdez/7009dbb82f1c33e6283f7c63fa09e66a to your computer and use it in GitHub Desktop.
Dockerfile para instalar Microsoft Edge en 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
# Cogemos la imagen de base con Cypress ya instalado. | |
FROM cypress/base:14.10.1 | |
USER root | |
# Vemos la versión de Node que tenemos instalada. | |
RUN node --version | |
# Añadimos las librerias para descargar Edge | |
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
RUN install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list' | |
RUN rm microsoft.gpg | |
# Instalamos Edge | |
RUN apt-get update | |
RUN apt-get install -y microsoft-edge-dev | |
# Conocer la versión de Edge que tenemos: | |
RUN microsoft-edge-dev --version | |
# Añadimos un link simbólico para indicar a Cypress donde está localizado | |
RUN ln -s /usr/bin/microsoft-edge /usr/bin/edge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment