This commit is contained in:
parent
6dd6581953
commit
6f6ef837ea
1 changed files with 1 additions and 9 deletions
10
Dockerfile
10
Dockerfile
|
@ -20,20 +20,12 @@ ENV LANG en_NZ.UTF-8
|
|||
ENV LANGUAGE en_NZ:en
|
||||
ENV LC_ALL en_NZ.UTF-8
|
||||
|
||||
ARG USERNAME=user
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=$USER_UID
|
||||
RUN groupadd --gid ${USER_GID} ${USERNAME}
|
||||
RUN useradd --shell /usr/bin/zsh --uid ${USER_UID} --gid ${USER_GID} -m ${USERNAME}
|
||||
RUN touch /entrypoint.sh && chown ${USERNAME}:${USERNAME} /entrypoint.sh
|
||||
|
||||
COPY asdf /usr/local/bin
|
||||
RUN chmod 755 /usr/local/bin/asdf
|
||||
COPY asdf_install /usr/local/bin
|
||||
RUN chmod 755 /usr/local/bin/asdf_install
|
||||
|
||||
USER ${USERNAME}
|
||||
ENV HOME=/home/${USERNAME}
|
||||
ENV HOME=/root
|
||||
|
||||
WORKDIR $HOME
|
||||
|
||||
|
|
Loading…
Reference in a new issue