e3a8b25850
* Rename service for nitro node * Update nitro node setup * Rename nitro-contracts image to nitro-client * Fix nitro node config setup * Add env variable for deterministic deployment * Keep nitro-contracts service running * Start nitro-bridge service after asset file is ready * Update environment variables for all services * Use quotes for bridge address * Update nitro-node and bridge stack readme * Fix nitro-node readme --------- Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
30 lines
658 B
Docker
30 lines
658 B
Docker
FROM golang:1.21-bullseye AS builder
|
|
|
|
# Copy files into image
|
|
WORKDIR /app
|
|
COPY . .
|
|
|
|
# Install mkcert
|
|
RUN curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64"
|
|
RUN chmod +x mkcert-v*-linux-amd64
|
|
RUN cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
|
|
|
|
RUN go mod tidy
|
|
|
|
# Build the binary
|
|
RUN go build -v -o nitro .
|
|
RUN go build -o nitro-bridge cmd/start-bridge/main.go
|
|
|
|
|
|
# Reduce image size
|
|
FROM debian:bullseye-slim
|
|
RUN apt-get update
|
|
RUN apt-get install -y jq netcat
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/nitro .
|
|
COPY --from=builder /app/nitro-bridge .
|
|
COPY --from=builder /usr/local/bin/mkcert /usr/local/bin/mkcert
|