Skip to content

Commit

Permalink
workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonxh committed Apr 20, 2024
1 parent fd59150 commit baa848a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,7 +43,6 @@ COPY --from=builder \
/usr/lib/

USER aptos
WORKDIR /aptos


FROM base AS aptos-node
Expand All @@ -56,7 +56,6 @@ COPY --from=builder \
/usr/lib/

USER aptos
WORKDIR /aptos

EXPOSE 8080
EXPOSE 9102
Expand Down

0 comments on commit baa848a

Please sign in to comment.