-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
37 lines (25 loc) · 960 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Build prover-server
FROM golang:1.18.2-bullseye as base
WORKDIR /build
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY ./cmd ./cmd
COPY ./pkg ./pkg
RUN go build -o ./prover ./cmd/prover/prover.go
RUN go build -tags="rapidsnark_noasm" -o ./prover_noasm ./cmd/prover/prover.go
# Main image
FROM alpine:3.16.0
RUN apk add --no-cache libstdc++ gcompat libgomp
COPY --from=base /build/prover /home/app/prover
COPY --from=base /build/prover_noasm /home/app/prover_noasm
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=base "/go/pkg/mod/github.com/wasmerio/[email protected]/wasmer/packaged/lib/linux-amd64/libwasmer.so" \
"/go/pkg/mod/github.com/wasmerio/[email protected]/wasmer/packaged/lib/linux-amd64/libwasmer.so"
COPY docker-entrypoint.sh /usr/local/bin/
COPY ./configs /home/app/configs
COPY ./circuits /home/app/circuits
WORKDIR /home/app
# Command to run
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 8002