-
Notifications
You must be signed in to change notification settings - Fork 5
/
Containerfile
50 lines (38 loc) · 1.19 KB
/
Containerfile
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
# **Description:**
#
# Run Hamsket in a container (multi-app chat tool)
#
# **Running:**
#
# ```sh
# podman run -d \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY \
# -v /dev/shm:/dev/shm \
# --device /dev/dri \
# --name hamsket \
# cdrage/hamsket
# ```
FROM debian:buster
LABEL maintainer="Charlie Drage <[email protected]>"
RUN apt-get -o Acquire::Check-Valid-Until=false update && apt-get install -y \
wget libgtk2.0-0 libx11-xcb1 libxtst6 libxss1 libgconf-2-4 libnss3 libasound2 ca-certificates libgtk-3-0 \
--no-install-recommends
ENV HOME /home/hamsket
RUN useradd --create-home --home-dir $HOME hamsket \
&& gpasswd -a hamsket hamsket \
&& chown -R hamsket:hamsket $HOME
USER hamsket
WORKDIR $HOME
ENV RELEASE https://github.com/TheGoddessInari/hamsket/releases/download/nightly/hamsket-0.6.0.tar.gz
RUN wget $RELEASE -O hamsket.tar.gz
RUN tar -zxvf hamsket.tar.gz --strip-components=1
ENV config /home/hamsket/.config/Hamsket
RUN mkdir -p "$config" \
&& chown -R hamsket:hamsket "$config"
USER root
RUN chown root:root chrome-sandbox \
&& chmod 4755 chrome-sandbox
USER hamsket
VOLUME /home/hamsket/.config/Hamset
ENTRYPOINT [ "./hamsket" ]