-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (43 loc) · 1.83 KB
/
Dockerfile
File metadata and controls
54 lines (43 loc) · 1.83 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
############################################################
# Copyright (c) 2015 Jonathan Yantis
# Released under the MIT license
############################################################
# ├─yantis/archlinux-tiny
# ├─yantis/archlinux-small
# ├─yantis/archlinux-small-ssh-hpn
# ├─yantis/ssh-hpn-x
# ├─yantis/dynamic-video
# ├─yantis/virtualgl
FROM yantis/dynamic-video
MAINTAINER Jonathan Yantis <yantis@yantis.net>
# Don't update
RUN pacman -Syy --noconfirm && \
# Install remaining packages
pacman --noconfirm -S \
inetutils \
libxv \
virtualgl \
lib32-virtualgl \
mesa-demos \
lib32-mesa-demos && \
# Fix VirtualGL for this hardcoded directory otherwise we can not connect with SSH.
mkdir /opt/VirtualGL && \
ln -s /usr/bin /opt/VirtualGL && \
# Force VirtualGL to be preloaded into setuid/setgid executables (do not do if security is an issue)
# chmod u+s /usr/lib/librrfaker.so && chmod u+s /usr/lib64/librrfaker.so && \
##########################################################################
# CLEAN UP SECTION - THIS GOES AT THE END #
##########################################################################
localepurge && \
# Remove man and docs
rm -r /usr/share/man/* && \
rm -r /usr/share/doc/* && \
# Delete any backup files like /etc/pacman.d/gnupg/pubring.gpg~
find /. -name "*~" -type f -delete && \
bash -c "echo 'y' | pacman -Scc >/dev/null 2>&1" && \
paccache -rk0 >/dev/null 2>&1 && \
pacman-optimize && \
rm -r /var/lib/pacman/sync/*
#########################################################################
CMD /init
# ADD demos.sh /home/docker/demos.sh