-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
35 lines (28 loc) · 966 Bytes
/
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
FROM buildpack-deps:jessie-curl
LABEL maintainer "Filip Dupanović (https://keybase.io/langrisha)"
RUN \
# Install dependencies
apt-get update && apt-get install -y \
fuse \
libappindicator1 \
--no-install-recommends \
# Get and verify Keybase.io's code signing key
&& curl https://keybase.io/docs/server_security/code_signing_key.asc | \
gpg --import \
&& gpg --fingerprint 222B85B0F90BE2D24CFEB93F47484E50656D16C7 \
# Get, verify and install client package
&& curl -O https://prerelease.keybase.io/keybase_amd64.deb.sig \
&& curl -O https://prerelease.keybase.io/keybase_amd64.deb \
&& gpg --verify keybase_amd64.deb.sig keybase_amd64.deb \
&& dpkg -i keybase_amd64.deb \
&& apt-get install -f \
# Create group, user
&& groupadd -g 1000 keybase \
&& useradd --create-home -g keybase -u 1000 keybase \
# Cleanup
&& rm -r /var/lib/apt/lists/* \
&& rm keybase_amd64.deb*
USER keybase
WORKDIR /home/keybase
CMD ["bash"]
RUN run_keybase