chore: install ASDF as root.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
James Harton 2023-07-19 19:19:43 +12:00
parent 6dd6581953
commit 6f6ef837ea
Signed by: james
GPG key ID: 90E82DAA13F624F4

View file

@ -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