Skip to content

Commit

Permalink
Slimmer container image
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin committed Jan 23, 2024
1 parent 7e5da4c commit c523c87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ RUN cargo build --release
# Install dependencies and copy the `zkbtc` binary
FROM ubuntu:latest

RUN apt update; apt install -y nodejs npm; npm install -g snarkjs@latest
RUN apt update; \
apt install -y curl libatomic1; \
curl https://pkgx.sh | sh; \
pkgx install node npm; \
npm install -g snarkjs@latest

ENV PATH=/root/.local/bin:$PATH
COPY --link --from=build /app/target/release/zkbtc /usr/local/bin/

WORKDIR /app
Expand Down

0 comments on commit c523c87

Please sign in to comment.