repo-cloner/ci/docker/Dockerfile
Václav Valíček c41d31a8cd
Try running docker build commands
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
2022-05-04 10:08:48 +02:00

48 lines
836 B
Docker

ARG PYTHON_TAG=3
FROM python:${PYTHON_TAG}
RUN set -xeu ; \
apt update ; \
apt -yy full-upgrade ; \
apt -yy install ca-certificates \
libfontconfig1 \
libfreetype6 \
libx11-6 \
libx11-xcb1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrender1 \
libxcb1 \
libxcb-util1 \
libxcb-glx0 \
libxcb-keysyms1 \
libxcb-image0 \
libxcb-shm0 \
libxcb-icccm4 \
libxcb-sync1 \
libxcb-xfixes0 \
libxcb-shape0 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxkbcommon0 \
libxkbcommon-x11-0 \
libdbus-1-3 \
xvfb xclip xsel xdotool; \
python -m venv /venv ;\
/venv/bin/pip install --upgrade pip ; \
apt clean ; \
rm -Rf /var/lib/apt/lists/* ; \
mkdir /app
ADD run-tests /usr/local/bin
ADD clilib /usr/local
VOLUME /app
WORKDIR /app
CMD ["/usr/local/bin/run-tests"]