Skip to content

Commit

Permalink
Remove entrypoint in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Nov 25, 2024
1 parent 3f17a4d commit f3f9517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,3 @@ RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master
WORKDIR $USER_HOME

COPY .zshrc .zshrc

ENTRYPOINT ["/bin/zsh"]
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ start_container() {
-w /code/ \
-e AWS_DEFAULT_REGION=eu-west-1 \
--dns 1.1.1.1 \
"${IMAGE_NAME}:${CONTAINER_VERSION}"
"${IMAGE_NAME}:${CONTAINER_VERSION}" /bin/zsh
}

# Function to attach to the running container
Expand All @@ -67,7 +67,7 @@ update_container() {
echo -e "\e[32m[INFO] Updating container '${CONTAINER_NAME}' to the latest version (${LATEST_VERSION})...\e[0m"
docker stop "${CONTAINER_NAME}" &>/dev/null || true
start_container "${LATEST_VERSION}"
docker exec -ti "${CONTAINER_NAME}" zsh
docker exec -ti "${CONTAINER_NAME}" /bin/zsh
}

# Fetch the current running version
Expand Down

0 comments on commit f3f9517

Please sign in to comment.