-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.28 KB
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 1.28 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
FROM ubuntu:20.04
LABEL version="0.3"
LABEL maintainer="florian.feldhaus@gmail.com"
# skip interactive configuration dialogs
ENV DEBIAN_FRONTEND noninteractive
# add winswitch repository and install Xpra
RUN apt-get update && \
apt-get install -y --no-install-recommends openssl gnupg curl && \
UBUNTU_VERSION=$(cat /etc/os-release | grep UBUNTU_CODENAME | sed 's/UBUNTU_CODENAME=//') && \
curl http://xpra.org/gpg.asc | apt-key add - && \
echo "deb http://xpra.org/ $UBUNTU_VERSION main" >> /etc/apt/sources.list.d/xpra.list && \
apt-get update && \
apt-get install -y --no-install-recommends xpra && \
apt-get remove -y --purge gnupg curl && \
apt-get autoremove -y --purge && \
rm -rf /var/lib/apt/lists/*
# copy xpra config file
COPY ./xpra.conf /etc/xpra/xpra.conf
# allow users to read default certificate
RUN chmod 644 /etc/xpra/ssl-cert.pem
# add xpra user
RUN useradd --create-home --shell /bin/bash xpra --gid xpra --uid 1000
WORKDIR /home/xpra
# create run directory for xpra socket and set correct permissions for xpra user
RUN mkdir -p /run/user/1000/xpra && chown -R 1000 /run/user/1000
# use docker-entrypoint.sh to allow passing options to xpra and start xpra from bash
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]