Skip to content

Commit

Permalink
feat: add workdir to dockerfile (#3259)
Browse files Browse the repository at this point in the history
This should be a non-breaking change.

This only changes the work directory when the container is started. This means that if you want to execute a command in a running container, it will be automatically in that directory instead of '/'. This improves maintaining and debugging our environments.
  • Loading branch information
smuu authored Mar 19, 2024
1 parent 3549af8 commit 0c5ed2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ COPY --chown=${USER_NAME}:${USER_NAME} docker/entrypoint.sh /opt/entrypoint.sh

USER ${USER_NAME}

WORKDIR ${CELESTIA_HOME}

EXPOSE 2121

ENTRYPOINT [ "/bin/bash", "/opt/entrypoint.sh" ]
Expand Down

0 comments on commit 0c5ed2d

Please sign in to comment.