From 8cf4c056b80f408c52ef516c8f275e67c3ee61fa Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 21 Jun 2022 12:13:24 +0300
Subject: [PATCH] Small changes.

- gpg2 to gpg wrapper (backward compatibility).
- Remove /keybase (forgot to remove it when I removed keybase).
- Remove broad sudo access. I don't think it's required and I don't like
  having it.
---
 Dockerfile | 2 --
 bin/gpg2   | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100755 bin/gpg2

diff --git a/Dockerfile b/Dockerfile
index 572590b..75728ab 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -301,8 +301,6 @@ RUN apt-get update && \
     echo "export PATH=$GOPATH/bin:\$PATH" > /etc/profile.d/workbench.sh && \
     touch /etc/localtime && \
     # pragma: allowlist nextline secret
-    sed -i -e 's/ ALL$/ NOPASSWD:ALL/' /etc/sudoers && \
-    install -d -m 777 /keybase && \
     rm /etc/ssh/ssh_host_* && \
     rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/*
 COPY --chown=root:root bash_completion.d/* /etc/bash_completion.d/
diff --git a/bin/gpg2 b/bin/gpg2
new file mode 100755
index 0000000..c444d5e
--- /dev/null
+++ b/bin/gpg2
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec gpg "$@"
-- 
GitLab