Skip to content

Commit

Permalink
docker: add sudo on ln
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 7, 2024
1 parent 20b7ee3 commit 13b4e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/app/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ FROM ${BASE_IMAGE}
ENV LANG en_US.UTF-8
ENV LC_ALL=C.UTF-8
ENV TZ Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update && \
apt-get install -y wget sudo less vim tzdata \
Expand All @@ -13,6 +12,8 @@ RUN apt-get update && \
curl git gcc make libssl-dev libreadline-dev && \
apt-get clean

RUN sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# ishocon ユーザ作成
RUN groupadd -g 1001 ishocon && \
useradd -g ishocon -G sudo -m -s /bin/bash ishocon && \
Expand Down

0 comments on commit 13b4e0f

Please sign in to comment.