Skip to content

Commit

Permalink
build(release): fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcanfly committed Jun 5, 2024
1 parent c6bffb7 commit f0c19b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
3 changes: 3 additions & 0 deletions Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*
!/Makefile
!/*.go
!/cmd
!/go.mod
!/go.sum

0 comments on commit f0c19b3

Please sign in to comment.