Skip to content

Commit

Permalink
fix: conditional logic in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bredamatt committed Feb 10, 2025
1 parent f718d69 commit 10c2a6d
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 @@ -25,9 +25,9 @@ WORKDIR /usr/src/atoma-node
COPY . .

# Compile
RUN if [ "$ENABLE_TDX" = "true" ]; then \
RUN if [ "$ENABLE_TDX" = "true" ] && [ "$ENABLE_SEV_SNP" = "false" ]; then \
RUST_LOG=${TRACE_LEVEL} cargo build --release --bin atoma-node --features tdx; \
elif [ "$ENABLE_SEV_SNP" = "true" ]; then \
elif [ "$ENABLE_SEV_SNP" = "true" ] && [ "$ENABLE_TDX" = "false" ]; then \
RUST_LOG=${TRACE_LEVEL} cargo build --release --bin atoma-node --features sev-snp; \
else \
RUST_LOG=${TRACE_LEVEL} cargo build --release --bin atoma-node; \
Expand Down

0 comments on commit 10c2a6d

Please sign in to comment.