-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (52 loc) · 1.32 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
# Use an official Ubuntu as a parent image
FROM ubuntu:24.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
# Install required dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libcairo2-dev \
libjpeg-turbo8-dev \
libpng-dev \
uuid-dev \
libtool-bin \
libpango1.0-dev \
libssh2-1-dev \
libtelnet-dev \
libvncserver-dev \
libpulse-dev \
libwebsockets-dev \
libssl-dev \
libvorbis-dev \
libwebp-dev \
freerdp2-dev \
ffmpeg \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswscale-dev \
git \
autoconf \
automake \
pkg-config \
systemd \
&& rm -rf /var/lib/apt/lists/*
# Clone the Guacamole server source code
RUN git clone https://github.com/apache/guacamole-server.git /guacamole-server
# Set working directory
WORKDIR /guacamole-server
# Build Guacamole server
RUN autoreconf -fi \
&& ./configure --with-systemd-dir=/etc/systemd/system \
&& make \
&& make install \
&& ldconfig
RUN echo '#!/bin/bash\n\
/usr/local/sbin/guacd -b 0.0.0.0 &\n\
# Keep the container running\n\
tail -f /dev/null' > /entrypoint.sh \
&& chmod +x /entrypoint.sh
# Expose the guacd port
EXPOSE 4822
# Use this when using sleep or tail in entrypoint script
ENTRYPOINT ["/entrypoint.sh"]