Skip to content

Commit

Permalink
trying to create a local user #10
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller authored Apr 20, 2021
1 parent c04718b commit 5d3090f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ENV SDKMAN_DIR=/root/.sdkman
# see https://github.com/docker-library/openjdk/issues/73
ENV LC_CTYPE en_US.UTF-8

RUN useradd -ms /bin/bash doctoolchain


RUN echo "add needed tools" && \
apk add --no-cache curl wget zip unzip git bash \
git \
Expand All @@ -24,6 +27,9 @@ RUN echo "add needed tools" && \

SHELL ["/bin/bash", "-c"]

USER doctoolchain
WORKDIR /home/doctoolchain

RUN echo "Install sdkman" &&\
curl -s "https://get.sdkman.io" | bash && \
chmod +x $HOME/.sdkman/bin/sdkman-init.sh && \
Expand All @@ -43,9 +49,9 @@ RUN git clone --depth 1 --branch ng https://github.com/docToolchain/docToolc
rm -rf `find -type d -name .git` && \
./gradlew tasks && \
./gradlew dependencies && \
PATH="/docToolchain/bin:${PATH}"
PATH="/home/doctoolchain/docToolchain/bin:${PATH}"

ENV PATH="/docToolchain/bin:${PATH}"
ENV PATH="/home/doctoolchain/docToolchain/bin:${PATH}"

RUN mkdir /project

Expand Down

0 comments on commit 5d3090f

Please # to comment.