diff --git a/Dockerfile b/Dockerfile index ace443ecfb..defec1a4f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,8 @@ COPY --from=builder /celestia-app/build/celestia-appd /bin/celestia-appd COPY --chown=${USER_NAME}:${USER_NAME} docker/entrypoint.sh /opt/entrypoint.sh # Set the user to celestia. USER ${USER_NAME} +# Set the working directory to the home directory. +WORKDIR ${CELESTIA_HOME} # Expose ports: # 1317 is the default API server port. # 9090 is the default GRPC server port. diff --git a/docker/Dockerfile_txsim b/docker/Dockerfile_txsim index dc9f32dd3a..767853f6ae 100644 --- a/docker/Dockerfile_txsim +++ b/docker/Dockerfile_txsim @@ -53,6 +53,9 @@ COPY --chown=${USER_NAME}:${USER_NAME} docker/txsim.sh /opt/entrypoint.sh USER ${USER_NAME} +# Set the working directory to the home directory. +WORKDIR ${CELESTIA_HOME} + # grpc, rpc, api ports EXPOSE 26657 1317 9090