Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Aug 17, 2024
1 parent 0464fd4 commit fe2d5b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wis2-gdc-management/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ LABEL maintainer="[email protected]"

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
Expand All @@ -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

Expand Down

0 comments on commit fe2d5b5

Please sign in to comment.