Skip to content

Commit

Permalink
fix aptos user uid (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jachen-sh authored Jul 25, 2024
1 parent cc44cca commit 0bf707d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates procps && \
rm -rf /var/lib/apt/lists/*

RUN adduser --uid 1000 --home /aptos --gecos '' --disabled-password aptos
RUN adduser --uid 1002 --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
Expand Down Expand Up @@ -58,6 +58,6 @@ COPY --from=builder \
USER aptos

EXPOSE 8080
EXPOSE 9102
EXPOSE 9101

ENTRYPOINT ["aptos-node"]

0 comments on commit 0bf707d

Please sign in to comment.