-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (45 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
55 lines (45 loc) · 1.39 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ubuntu
RUN mkdir -p /tests
COPY requirements.txt /tests/requirements.txt
RUN apt-get update && apt-get install -y \
curl \
wget \
mc \
unzip \
software-properties-common \
xvfb \
fonts-liberation \
libnss3 \
libnspr4 \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatspi2.0-0 \
libgtk-3-0 \
libxtst6 \
libxss1 \
lsb-release \
xdg-utils \
apt-utils \
nano \
libgconf-2-4 \
locales \
python3-setuptools \
python3-pip \
language-pack-ru \
antiword \
&& pip3 install --upgrade --isolated pip
RUN pip3 install -r /tests/requirements.txt
# Установка русской кодировки
ENV LANGUAGE ru_RU.UTF-8
ENV LANG ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8
RUN locale-gen ru_RU.UTF-8 && dpkg-reconfigure locales
# Установка Хрома
RUN curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /chrome.deb
RUN dpkg -i /chrome.deb || apt-get install -yf
RUN rm /chrome.deb
RUN cd /tmp && wget "https://chromedriver.storage.googleapis.com/80.0.3987.16/chromedriver_linux64.zip" && unzip chromedriver_linux64.zip && mv /tmp/chromedriver /usr/bin/ && chmod a+x /usr/bin/chromedriver
ENV PYTHONPATH $PYTHONPATH:/tests
WORKDIR /tests
RUN apt-get clean && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/ /usr/share/man/