From f0c19b33a41faeebb94d31819e783920789ae7e8 Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Wed, 5 Jun 2024 13:12:43 -0700 Subject: [PATCH] build(release): fix dockerfile --- Dockerfile | 12 ++++++++---- Dockerfile.dockerignore | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 122e8b0..ebf76c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ -ARG OP_STACK_GO_BUILDER=us-docker.pkg.dev/oplabs-tools-artifacts/images/op-stack-go:latest -FROM $OP_STACK_GO_BUILDER as builder -# See "make golang-docker" and /ops/docker/op-stack-go +FROM golang:1.22.2-alpine3.18 as builder + +WORKDIR / +COPY . op-plasma-celestia +RUN apk add --no-cache make +WORKDIR /op-plasma-celestia +RUN make da-server FROM alpine:3.18 -COPY --from=builder /usr/local/bin/da-server /usr/local/bin/da-server +COPY --from=builder /op-plasma-celestia/bin/da-server /usr/local/bin/da-server CMD ["da-server"] diff --git a/Dockerfile.dockerignore b/Dockerfile.dockerignore index 1e7c367..6cc91f8 100644 --- a/Dockerfile.dockerignore +++ b/Dockerfile.dockerignore @@ -1,3 +1,6 @@ * +!/Makefile +!/*.go +!/cmd !/go.mod !/go.sum