Skip to content

Commit

Permalink
Add .dockerenv marker
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonxh committed Apr 20, 2024
1 parent 415a3e6 commit fd59150
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN source ~/.profile && \
RUN source ~/.profile && \
cargo build --locked --release --package aptos-node


FROM ubuntu:22.04 AS base

RUN apt-get update && \
Expand All @@ -25,6 +26,10 @@ RUN apt-get update && \

RUN adduser --uid 1000 --home /aptos --gecos '' --disabled-password aptos

# https://github.com/aptos-labs/aptos-core/blob/a72ef8a716ecf3ab207c8377cb94c9c5aedaf5b4/crates/aptos/src/node/local_testnet/mod.rs#L236
RUN touch /aptos/.dockerenv


FROM base AS aptos

COPY --from=builder \
Expand All @@ -39,6 +44,7 @@ COPY --from=builder \
USER aptos
WORKDIR /aptos


FROM base AS aptos-node

COPY --from=builder \
Expand Down

0 comments on commit fd59150

Please sign in to comment.