26 lines
651 B
Docker
26 lines
651 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/*
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
# Install mkcert
|
|
RUN curl -JL "https://dl.filippo.io/mkcert/latest?for=$TARGETPLATFORM" -o /usr/local/bin/mkcert && \
|
|
chmod +x /usr/local/bin/mkcert
|
|
|
|
WORKDIR /app
|
|
|
|
# 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
|