Skip to content

Commit f65d6a8

Browse files
committed
Dockerfile: alpine linux 3.12
1 parent 44a6e49 commit f65d6a8

2 files changed

Lines changed: 60 additions & 39 deletions

File tree

Dockerfile

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,21 @@
1-
# DOCKER-VERSION 17.10.0-ce
2-
FROM python:slim
1+
FROM alpine:3.12.1
32
MAINTAINER Giuseppe De Marco <giuseppe.demarco@unical.it>
43

5-
# set environment variables
6-
ENV PYTHONDONTWRITEBYTECODE 1
7-
ENV PYTHONUNBUFFERED 1
4+
RUN apk update
5+
RUN apk add chromium
6+
RUN apk add chromium-chromedriver
87

9-
RUN apt update
10-
RUN apt install -y locales
11-
12-
# generate chosen locale
13-
RUN sed -i 's/# it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/' /etc/locale.gen
14-
RUN locale-gen it_IT.UTF-8
15-
# set system-wide locale settings
16-
ENV LANG it_IT.UTF-8
17-
ENV LANGUAGE it_IT
18-
ENV LC_ALL it_IT.UTF-8
19-
20-
ENV VDPATH=VideoDrone
21-
ENV VD_DRONECONN="videodrone.drones.jitsi_chrome"
22-
ENV VD_ROOM="thatroom"
23-
ENV VD_Y4M="/$VDPATH/y4ms/"
24-
ENV VD_LIFETIME=24
25-
ENV VD_DRONE_NUMBER=2
26-
27-
# install dependencies
28-
RUN apt update
29-
RUN apt install -y wget unzip curl chromium chromium-driver
30-
#RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O google_chrome.deb
31-
RUN wget http://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_83.0.4103.97-1_amd64.deb -O google_chrome.deb
32-
RUN apt install ./google_chrome.deb -y
33-
34-
35-
# install xvfb
36-
RUN apt-get install -yqq xvfb
37-
# set display port and dbus env to avoid hanging
8+
RUN apk add xvfb
389
ENV DISPLAY=:99
3910
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
4011

41-
RUN apt clean
12+
RUN apk add py-pip
13+
RUN pip install videodrone
4214

43-
# install dependencies
44-
RUN pip3 install --upgrade pip
15+
ENV VDPATH=VideoDrone
16+
ENV VD_Y4M="/$VDPATH/y4ms/"
4517

46-
RUN wget https://raw.githubusercontent.com/peppelinux/videodrone/master/build.sh -O build.sh
47-
RUN bash build.sh $VDPATH
18+
RUN mkdir $VDPATH
19+
WORKDIR $VD_Y4M
20+
RUN wget https://media.xiph.org/video/derf/y4m/stefan_cif.y4m
21+
WORKDIR $VDPATH

Dockerfile.debian10

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# DOCKER-VERSION 17.10.0-ce
2+
FROM python:slim
3+
MAINTAINER Giuseppe De Marco <giuseppe.demarco@unical.it>
4+
5+
# set environment variables
6+
ENV PYTHONDONTWRITEBYTECODE 1
7+
ENV PYTHONUNBUFFERED 1
8+
9+
RUN apt update
10+
RUN apt install -y locales
11+
12+
# generate chosen locale
13+
RUN sed -i 's/# it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/' /etc/locale.gen
14+
RUN locale-gen it_IT.UTF-8
15+
# set system-wide locale settings
16+
ENV LANG it_IT.UTF-8
17+
ENV LANGUAGE it_IT
18+
ENV LC_ALL it_IT.UTF-8
19+
20+
ENV VDPATH=VideoDrone
21+
ENV VD_DRONECONN="videodrone.drones.jitsi_chrome"
22+
ENV VD_ROOM="thatroom"
23+
ENV VD_Y4M="/$VDPATH/y4ms/"
24+
ENV VD_LIFETIME=24
25+
ENV VD_DRONE_NUMBER=2
26+
27+
# install dependencies
28+
RUN apt update
29+
RUN apt install -y wget unzip curl chromium chromium-driver
30+
#RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O google_chrome.deb
31+
RUN wget http://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_83.0.4103.97-1_amd64.deb -O google_chrome.deb
32+
RUN apt install ./google_chrome.deb -y
33+
34+
35+
# install xvfb
36+
RUN apt-get install -yqq xvfb
37+
# set display port and dbus env to avoid hanging
38+
ENV DISPLAY=:99
39+
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
40+
41+
RUN apt clean
42+
43+
# install dependencies
44+
RUN pip3 install --upgrade pip
45+
46+
RUN wget https://raw.githubusercontent.com/peppelinux/videodrone/master/build.sh -O build.sh
47+
RUN bash build.sh $VDPATH

0 commit comments

Comments
 (0)