geckodriver-alpine/Dockerfile

13 lines
382 B
Docker
Raw Permalink Normal View History

2019-03-09 14:06:16 +00:00
FROM alpine:latest
# Switch to edge (for latest firefox)
RUN sed -i -e 's/v[[:digit:]]\.[[:digit:]]/edge/g' /etc/apk/repositories
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
RUN apk update && apk upgrade
RUN apk add firefox-esr jq xvfb curl openjdk8-jre
RUN rm -rf /var/cache/apk/*
COPY geckodriver.sh geckodriver.sh
RUN sh geckodriver.sh