We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fbc26 commit 26aae56Copy full SHA for 26aae56
deb/Dockerfile
@@ -12,4 +12,11 @@ COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
12
# Install dependencies and protonmail bridge
13
RUN bash install.sh
14
15
+# Add a user 'protonmail' with UID 8535
16
+RUN useradd -u 8535 -d /home/protonmail protonmail \
17
+ && mkdir -p /home/protonmail \
18
+ && chown protonmail: /home/protonmail
19
+# change to non-privileged user for extra security
20
+USER protonmail
21
+
22
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
deb/entrypoint.sh
@@ -2,6 +2,10 @@
2
3
set -ex
4
5
+# Go to current user's homedir
6
+cd
7
+echo "Running as user '$USER' (UID '$UID') in '$PWD'"
8
9
# Initialize
10
if [[ $1 == init ]]; then
11
0 commit comments