-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
42 lines (33 loc) · 924 Bytes
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
FROM ubuntu:latest
WORKDIR /gid
ENV TZ=Europe/Madrid
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get -y install \
xvfb \
x11vnc \
supervisor \
fluxbox \
net-tools \
git-core \
git \
wget \
xz-utils \
curl \
libglu1-mesa \
libharfbuzz0b \
binutils
WORKDIR /tmp
COPY ./install-gid.sh "install-gid.sh"
RUN chmod 750 "./install-gid.sh"
# Set the version of GiD to install as first parameter
ARG GID_VERSION=17.2.0-IR
RUN echo "Installing GiD version ${GID_VERSION}..."
# Install GiD with the provided version
RUN ./install-gid.sh ${GID_VERSION}
#clean up
RUN rm -rf /tmp/* && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
# docker build --progress=plain --build-arg GID_VERSION=17.2.0-IR -t gid:17.2.0-IR .
# docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY gid:17.2.0-IR