nitro-stack/stack-orchestrator/container-build/cerc-go-nitro/Dockerfile
shreerang6921 e25a412c86
Create skeleton of stack for running nitro nodes (#1)
* Add initial stack for running go-nitro

* Fix clone required repo command

* Add step for cloning required repo

* Build docker images for nitro protocol and nitro rpc client

* Add todos in go-nitro and nitro-contracts container

* Add todos in go-nitro readme

* Replace top level version with name in docker compose files

---------

Co-authored-by: Neeraj <neeraj.rtly@gmail.com>
2024-07-17 14:59:46 +05:30

18 lines
369 B
Docker

FROM golang:1.21-bullseye AS builder
# Copy files into image
WORKDIR /app
COPY . .
# Build the binary
RUN go build -v -o nitro .
# TODO: Update steps to build go-nitro image
# Reduce image size
FROM debian:bullseye-slim
RUN apt-get update
RUN apt-get install -y ca-certificates jq netcat
RUN rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/nitro .