Skip to content

Commit

Permalink
update docker to support bash
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Mar 9, 2024
1 parent 0cf8a6c commit c5ddfac
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# Build ES node in a stock Go builder container
FROM golang:1.20-alpine as builder

RUN apk add --no-cache gcc musl-dev linux-headers make

# build
FROM golang:1.21 as builder
ADD . /es-node
WORKDIR /es-node
RUN make

# Pull ES node into a second stage deploy alpine container
FROM node:16-alpine
FROM alpine:latest
COPY --from=builder /es-node/build/ /es-node/build/

# For zk proof
RUN apk add --no-cache bash libstdc++ gcompat libgomp nodejs npm
RUN npm install -g snarkjs
RUN apk add --no-cache curl grep

# Entrypoint
COPY --from=builder /es-node/run.sh /es-node/
Expand Down

0 comments on commit c5ddfac

Please sign in to comment.