Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ RUN ./docker-setup.sh
RUN mkdir /vagrant
WORKDIR /vagrant

# Setting up cit595 as the user
# Setting up cis380 as the user
# https://github.com/CIS380/docker-env/wiki/Add-non-root-user
ARG GID=1000
ARG UID=1000
RUN addgroup --gid $GID cit595
RUN useradd --system --create-home --shell /bin/bash --groups sudo -p "$(openssl passwd -1 mcit)" --uid $UID --gid $GID cit595
RUN chown -R cit595:cit595 /vagrant
RUN cp /root/.vimrc /home/cit595/.vimrc
RUN chown cit595:cit595 /home/cit595/.vimrc
USER cit595
RUN addgroup --gid $GID cis380
RUN useradd --system --create-home --shell /bin/bash --groups sudo -p "$(openssl passwd -1 cis)" --uid $UID --gid $GID cis380
RUN chown -R cis380:cis380 /vagrant
RUN cp /root/.vimrc /home/cis380/.vimrc
RUN chown cis380:cis380 /home/cis380/.vimrc
USER cis380
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '3.8'
services:
mcit:
cis:
build: .
image: cis380/docker-env
volumes:
Expand Down