From 84e0bd7dd2b5c2a9d36435f99a61cf4d077b22a3 Mon Sep 17 00:00:00 2001 From: smuu <18609909+smuu@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:36:48 +0100 Subject: [PATCH] feat: add workdir to dockerfile (#3259) 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. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 66fbe6ae7a..5e29d82c43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]