forked from coollabsio/jean
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.server-runtime
More file actions
26 lines (26 loc) · 913 Bytes
/
Copy pathDockerfile.server-runtime
File metadata and controls
26 lines (26 loc) · 913 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
FROM debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
openssh-client \
libwebkit2gtk-4.1-0 \
libayatana-appindicator3-1 \
librsvg2-2 \
xdg-utils \
xvfb \
xauth \
&& rm -rf /var/lib/apt/lists/* \
&& useradd --create-home --shell /bin/bash jean \
&& mkdir -p /home/jean/.cache /home/jean/.config /home/jean/.local/share/com.jean.desktop /tmp/.X11-unix \
&& chown -R jean:jean /home/jean \
&& chmod 1777 /tmp/.X11-unix
COPY jean-server /usr/local/bin/jean-server
COPY docker-entrypoint.sh /usr/local/bin/jean-server-entrypoint
RUN chmod +x /usr/local/bin/jean-server /usr/local/bin/jean-server-entrypoint
USER jean
ENV JEAN_HOST=0.0.0.0 \
JEAN_PORT=3456
EXPOSE 3456
VOLUME ["/home/jean/.local/share/com.jean.desktop"]
ENTRYPOINT ["/usr/local/bin/jean-server-entrypoint"]