diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2021-03-24 06:56:40 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2021-03-24 06:56:40 +0100 |
commit | 97ab7f1b9a38f88b50debf691f280173d3152b07 (patch) | |
tree | d91eddd3e1e0a21fe462c00bcc318656ea2f804d /Dockerfile | |
download | poezio-97ab7f1b9a38f88b50debf691f280173d3152b07.tar.gz poezio-97ab7f1b9a38f88b50debf691f280173d3152b07.tar.xz poezio-97ab7f1b9a38f88b50debf691f280173d3152b07.zip |
Initial poezio client repository
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..738c110 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,42 @@ +FROM fedora:33 +MAINTAINER http://fedoraproject.org/wiki/Cloud + + +RUN dnf -y update && dnf clean all +RUN dnf -y install dnf-plugins-core && dnf clean all + + +# Add non-official repository +RUN dnf -y copr enable fantom/poezio-omemo && \ + dnf repolist all + + +# Add non-official CA to connect to the server +# If you want an account on casperlefantom.net, just send request to: +# "casper at casperlefantom.net"; then enable OMEMO +RUN curl -o /etc/pki/ca-trust/source/anchors/root.pem https://dl.casperlefantom.net/pub/ssl/root.pem && \ + /usr/bin/update-ca-trust +# Sha256 fingerprint is stored here: +# https://dl.casperlefantom.net/pub/ssl/fingerprint-for-poezio-client.txt +# http://uhxfe4e6yc72i6fhexcpk4ph4niueexpy4ckc3wapazxqhv4isejbnyd.onion/pub/ssl/fingerprint-for-poezio-client.txt + + +RUN dnf -y install poezio \ + poezio-omemo \ +&& dnf clean all + + +# Create user to run process as non-root +RUN useradd -m -s /bin/sh poezio-user +RUN mkdir -p /home/poezio-user/.config/poezio \ + /home/poezio-user/.local/share/poezio && \ +chown -R poezio-user:poezio-user /home/poezio-user/.config \ + /home/poezio-user/.local + +# Switching to non-root user +USER poezio-user +WORKDIR /home/poezio-user/ + + +VOLUME ["/home/poezio-user/.config/poezio", "/home/poezio-user/.local/share/poezio"] +CMD ["/usr/bin/poezio"] |