Updating dockers

This commit is contained in:
Ganesh Gore 2023-02-02 20:43:40 -07:00
parent 8089fd9e3c
commit 0e541dedd4
1 changed files with 11 additions and 1 deletions

View File

@ -8,14 +8,24 @@ RUN apt-get install -y nodejs
RUN apt-get install tree
RUN code-server --install-extension ms-python.python
ARG NB_USER=openfpga_user
RUN usermod -u 2000 openfpga_user
RUN groupmod -g 2000 openfpga_user
ARG NB_USER=of_user
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
RUN chown -R ${NB_UID} ${HOME}
RUN chown -R ${NB_UID} /opt/openfpga
WORKDIR ${HOME}
USER ${NB_USER}
ENV PATH $PATH:/home/${NB_USER}/.local/bin