Skip to content

Commit

Permalink
updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
crypticmeta committed Aug 30, 2024
1 parent 3cc3013 commit 2702a94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ RUN apt-get update && apt-get install -y \
sudo \
&& rm -rf /var/lib/apt/lists/*

# Install Node.js, npm, and Yarn
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& npm install --global yarn \
&& rm -rf /var/lib/apt/lists/*

# Copy local Rust code to the container
COPY ./ /app/

Expand All @@ -29,6 +35,9 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& . $HOME/.cargo/env \
&& cargo build --release

# Navigate to the indexer directory and run yarn
RUN cd /app/indexer && yarn install

# Add a startup script and change permissions while still root
COPY start.sh /start.sh
RUN chmod +x /start.sh
Expand Down

0 comments on commit 2702a94

Please sign in to comment.