Commit c8f2f650 authored by Ubuntu's avatar Ubuntu

add docker build

parent 5c9961c8
# syntax = docker/dockerfile:1-experimental
FROM golang:1.23-alpine AS build
# Install dependencies
RUN apk update && \
apk upgrade && \
apk add --no-cache bash git openssh make build-base
WORKDIR /build
COPY . /build/code
RUN git clone https://code.wuban.net.cn/exchain/process /build/process
RUN cd /build/code && make build-go
#RUN cd /build/code && mv process ../ && make build-go
FROM alpine
WORKDIR /root
COPY --from=build /build/code/bin/* /usr/bin/
ENTRYPOINT [ "/usr/bin/opnode" ]
......@@ -66,6 +66,10 @@ mod-tidy: ## Cleans up unused dependencies in Go modules
export GOPRIVATE="github.com/ethereum-optimism" && go mod tidy
.PHONY: mod-tidy
docker:
@docker build --no-cache -t exchain-node:latest .
.PHONY: docker
clean: ## Removes all generated files under bin/
rm -rf ./bin
cd packages/contracts-bedrock/ && forge clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment