Skip to content

Commit

Permalink
fixed adduser for alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller authored Apr 20, 2021
1 parent 5d3090f commit f276500
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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 addgroup -S dtcgroup && adduser -S dtcuser -G dtcgroup


RUN echo "add needed tools" && \
Expand All @@ -27,8 +27,8 @@ RUN echo "add needed tools" && \

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

USER doctoolchain
WORKDIR /home/doctoolchain
USER dtcsuser
WORKDIR /home/dtcuser

RUN echo "Install sdkman" &&\
curl -s "https://get.sdkman.io" | bash && \
Expand All @@ -49,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="/home/doctoolchain/docToolchain/bin:${PATH}"
PATH="/home/dtcuser/docToolchain/bin:${PATH}"

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

RUN mkdir /project

Expand Down

0 comments on commit f276500

Please # to comment.