Skip to content

Commit

Permalink
Permission error fixed (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryotafunaki authored Jul 30, 2024
1 parent 676318a commit 29e66dd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ ARG USER_NAME=developer
RUN useradd -m ${USER_NAME} -s /bin/bash
RUN echo "$USER_NAME ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USER_NAME}

# Clean up
RUN apt clean && \
rm -rf /var/lib/apt/lists/*

# Install development tools for root
COPY ./root_shells/ ./shells/
RUN cd ./shells && \
Expand All @@ -34,3 +30,14 @@ RUN cd ./shells && \
./install.sh && \
cd ..
RUN rm -rf ./shells

USER root

# Clean up
RUN apt clean && \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/* && \
rm -rf /var/tmp/*

USER ${USER_NAME}
WORKDIR /home/${USER_NAME}

0 comments on commit 29e66dd

Please sign in to comment.