-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
31 lines (24 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Official Python Docker image
# https://hub.docker.com/_/python
FROM python:3-slim
LABEL maintainer="Yichi Zhang <ichicho@keio.jp>"
WORKDIR /root
# Basic packages and Firefox
RUN apt update && \
apt install -y --no-install-recommends \
curl \
tar \
firefox-esr && \
rm -rf /var/lib/apt/lists/*
# Install geckodriver
# https://selenium-python.readthedocs.io/installation.html#drivers
# https://github.com/mozilla/geckodriver/releases
RUN curl -OL https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz && \
tar -xvzf geckodriver* && \
mv geckodriver /usr/local/bin && \
rm geckodriver*
# Install Selenium
RUN pip install --no-cache-dir selenium==4.2.0
WORKDIR /root/nagias
# Default usage: override CMD in *docker run* for proper logintype
CMD ["echo", "Nothing happened. To use nagias, please follow the steps described in README.md."]