From fe2d5b58702b630f2ddbbe4590d5128ee8e21568 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Thu, 15 Aug 2024 14:49:40 -0400 Subject: [PATCH] Update Dockerfile --- wis2-gdc-management/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wis2-gdc-management/Dockerfile b/wis2-gdc-management/Dockerfile index fda6481..53adef3 100644 --- a/wis2-gdc-management/Dockerfile +++ b/wis2-gdc-management/Dockerfile @@ -25,7 +25,7 @@ LABEL maintainer="tomkralidis@gmail.com" ENV TZ="Etc/UTC" \ DEBIAN_FRONTEND="noninteractive" \ - DEBIAN_PACKAGES="bash cron curl git python3-pip python3-setuptools vim" + DEBIAN_PACKAGES="bash cron curl git python3-pip python3-setuptools sudo vim" # copy the app COPY ./ /app @@ -48,7 +48,9 @@ RUN apt-get update -y && \ chmod 0644 /var/spool/cron/crontabs/wis2-gdc && \ crontab /var/spool/cron/crontabs/wis2-gdc && \ # add wis2-gdc user - useradd -ms /bin/bash wis2-gdc + useradd -ms /bin/bash wis2-gdc && \ + adduser wis2-gdc sudo && \ + echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers USER wis2-gdc