Skip to content

Commit

Permalink
Reinstate user
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed Mar 1, 2024
1 parent 72cf898 commit 69bb41e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM clojure:temurin-21-tools-deps-bullseye-slim

RUN apt-get -yqq update && \
apt-get -yqq upgrade && \
#apt-get -yqq install sudo && \
apt-get -yqq install sudo && \
apt-get -yqq install git curl && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -13,15 +13,15 @@ RUN curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install


# Image will default non-root user: deps-try-user
#RUN groupadd deps-try-user && \
# useradd --create-home --shell /bin/bash --gid deps-try-user deps-try-user && \
# usermod -a -G sudo deps-try-user && \
# echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers && \
# echo 'deps-try-user:secret' | chpasswd
#ENV HOME=/home/deps-try-user
#
#USER deps-try-user
#WORKDIR /home/deps-try-user
RUN groupadd deps-try-user && \
useradd --create-home --shell /bin/bash --gid deps-try-user deps-try-user && \
usermod -a -G sudo deps-try-user && \
echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo 'deps-try-user:secret' | chpasswd
ENV HOME=/home/deps-try-user

USER deps-try-user
WORKDIR /home/deps-try-user

RUN curl -sLO https://github.com/eval/deps-try/releases/download/unstable/deps-try-bb.jar && \
bb deps-try-bb.jar -P
Expand Down

0 comments on commit 69bb41e

Please sign in to comment.