nitro-stack/stack-orchestrator/container-build/cerc-go-nitro/Dockerfile
Prathamesh Musale f989e87425 Pin repo, binaries and package versions in stack (#15)
Part of [Create bridge channel in go-nitro](https://www.notion.so/Create-bridge-channel-in-go-nitro-22ce80a0d8ae4edb80020a8f250ea270)

Reviewed-on: #15
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-10-30 13:38:00 +00:00

26 lines
673 B
Docker

FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y jq netcat-traditional ca-certificates curl
RUN rm -rf /var/lib/apt/lists/*
# Copy files into image
WORKDIR /app
# 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
# Download binaries
RUN curl -LO https://git.vdb.to/cerc-io/nitro/releases/download/v0.1.7/nitro
RUN curl -LO https://git.vdb.to/cerc-io/nitro/releases/download/v0.1.7/bridge
# Make binaries executable
RUN chmod +x ./nitro
RUN chmod +x ./bridge
# Verify that binaries are correctly setup
RUN ./nitro help
RUN ./bridge help