This commit is contained in:
parent
972ce255a1
commit
de5169be7d
23
Dockerfile
23
Dockerfile
@ -1,26 +1,7 @@
|
||||
FROM ubuntu:22.04
|
||||
FROM selenium/standalone-firefox:127.0
|
||||
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install --no-install-recommends --no-install-suggests -y tzdata ca-certificates bzip2 curl wget libc-dev libxt6 openjdk-19-jdk openjdk-19-jre \
|
||||
&& apt-get install --no-install-recommends --no-install-suggests -y `apt-cache depends firefox-esr | awk '/Depends:/{print$2}'` \
|
||||
&& update-ca-certificates \
|
||||
# Cleanup unnecessary stuff
|
||||
&& apt-get purge -y --auto-remove \
|
||||
-o APT::AutoRemove::RecommendsImportant=false \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
||||
|
||||
# install geckodriver
|
||||
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz && \
|
||||
tar -zxf geckodriver-v0.31.0-linux64.tar.gz -C /usr/local/bin && \
|
||||
chmod +x /usr/local/bin/geckodriver && \
|
||||
rm geckodriver-v0.31.0-linux64.tar.gz
|
||||
|
||||
# install firefox
|
||||
RUN FIREFOX_SETUP=firefox-setup.tar.bz2 && \
|
||||
wget -O $FIREFOX_SETUP "https://download.mozilla.org/?product=firefox-95.0.1&os=linux64" && \
|
||||
tar xjf $FIREFOX_SETUP -C /opt/ && \
|
||||
ln -s /opt/firefox/firefox /usr/bin/firefox && \
|
||||
rm $FIREFOX_SETUP
|
||||
&& apt-get install --no-install-recommends --no-install-suggests -y openjdk-19-jdk openjdk-19-jre
|
||||
|
||||
## Setup user and working directory
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
|
Loading…
Reference in New Issue
Block a user