diff --git a/Dockerfile b/Dockerfile index eeac91d..8b8ee2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,10 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* RUN adduser --uid 1000 --home /aptos --gecos '' --disabled-password aptos +WORKDIR /aptos # https://github.com/aptos-labs/aptos-core/blob/a72ef8a716ecf3ab207c8377cb94c9c5aedaf5b4/crates/aptos/src/node/local_testnet/mod.rs#L236 -RUN touch /aptos/.dockerenv +RUN touch .dockerenv FROM base AS aptos @@ -42,7 +43,6 @@ COPY --from=builder \ /usr/lib/ USER aptos -WORKDIR /aptos FROM base AS aptos-node @@ -56,7 +56,6 @@ COPY --from=builder \ /usr/lib/ USER aptos -WORKDIR /aptos EXPOSE 8080 EXPOSE 9102