This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
74 lines (53 loc) · 1.38 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:bionic
ARG USER=docker
ARG UID=1000
ARG GID=1000
LABEL description="antimicroX from latest commit on Github. See https://github.com/juliagoda/antimicroX"
MAINTAINER Jagoda Górska <juliagoda.pl@protonmail.com>
RUN apt-get -y update && apt-get install -y \
g++ \
make \
build-essential \
git \
mesa-utils \
libgl1-mesa-glx \
libgl1-mesa-dri \
gettext \
autoconf \
pkg-config \
cmake \
extra-cmake-modules \
libtool \
curl \
libsdl2-dev \
qttools5-dev \
qttools5-dev-tools \
libxi-dev \
libxtst-dev \
libx11-dev \
libqt5x11extras5-dev \
libxrender-dev \
libxext-dev \
itstool \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get autoremove -y
RUN git clone https://github.com/juliagoda/antimicroX.git
RUN addgroup --gid ${GID} ${USER} && \
adduser --disabled-password --gecos '' --uid ${UID} --gid ${GID} ${USER} && \
usermod -a -G input ${USER} && \
usermod -a -G uucp ${USER} && \
usermod -a -G tty ${USER} && \
usermod -a -G games ${USER}
WORKDIR antimicroX
RUN mkdir -p build
WORKDIR build
# finally build project from github
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
make && \
make install
WORKDIR ..
RUN rm -rf build
USER ${UID}:${GID}
WORKDIR /home/${USER}
CMD /usr/bin/antimicroX