Skip to content
Merged
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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ RUN mkdir -p /opt/bin /opt/cs50/bin
# Add user
RUN useradd --home-dir /home/ubuntu --shell /bin/bash ubuntu && \
umask 0077 && \
mkdir -p /home/ubuntu/workspace && \
mkdir -p /home/ubuntu && \
chown -R ubuntu:ubuntu /home/ubuntu


Expand All @@ -248,7 +248,7 @@ RUN sed -e "s|^Defaults\tsecure_path=.*|Defaults\t!secure_path|" -i /etc/sudoers

# Set user
USER ubuntu
WORKDIR /home/ubuntu/workspace
WORKDIR /home/ubuntu


# Update mlocate database in background
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ rebuild:
docker build --no-cache -t cs50/cli:focal .

run:
docker run -it -P --rm --security-opt seccomp=unconfined -v "$(PWD)":/home/ubuntu/workspace cs50/cli:focal
docker run -it -P --rm --security-opt seccomp=unconfined -v "$(PWD)":/home/ubuntu cs50/cli:focal
7 changes: 0 additions & 7 deletions etc/profile.d/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ if [ "$(whoami)" != "root" ]; then

fi

# If ubuntu
if [ "$(whoami)" = "ubuntu" ]; then

# Alias
alias cd="HOME=~/workspace cd"
fi

# Editor
export EDITOR="nano"

Expand Down