Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevans committed Feb 14, 2024
1 parent 05c75d1 commit e038100
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,16 @@ RUN pip install \
ARG USER="monty" \
GROUP="monty" \
PASSWORD="monty"
# ENV USER="monty"
# HOME="/home/${USER}"
# GROUP "python"
# RUN useradd -ms /bin/bash monty && echo "monty:monty" | chpasswd && adduser monty sudo
# RUN useradd -ms /bin/bash ${USER} && echo "${USER}:${PASSWORD}" | chpasswd && adduser ${USER} sudo
RUN groupadd ${GROUP} && \
useradd -ms /bin/bash -g ${GROUP} -g sudo ${USER} && \
echo "${USER}:${PASSWORD}" | chpasswd
# RUN groupadd -g 999 python && \
# useradd -r -u 999 -g monty python
ENV HOME="/home/${USER}"
RUN chown -R ${USER}:${USER} ${HOME}
USER ${USER}

# Copy tutorial notebooks and example scripts to home directory
WORKDIR ${HOME}
# WORKDIR /home/${USER}

RUN git clone https://github.com/brian-team/brian2.git \
&& mv brian2/examples examples \
&& mv brian2/tutorials tutorials \
Expand All @@ -64,8 +56,3 @@ EXPOSE 8888
# CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root"]
CMD ["jupyter", "lab", "--ip=0.0.0.0"]
# CMD [ "/bin/bash" ]


# TODO: Create secrets for user and password
# TODO: Ensure pypi is used for brian2 and brian2tools
# TODO: Check sudo works

0 comments on commit e038100

Please sign in to comment.