Skip to content

Commit

Permalink
Merge pull request #19 from rollkit/docker
Browse files Browse the repository at this point in the history
dockerize local-da
  • Loading branch information
gupadhyaya authored Jun 6, 2024
2 parents d22656e + 0a72213 commit f55f4d2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build-env

# Set working directory for the build
WORKDIR /src

COPY . .

RUN go mod tidy -compat=1.19 && \
go build /src/cmd/local-da/main.go

# Final image
FROM alpine:3.18.3

WORKDIR /root

# Copy over binaries from the build-env
COPY --from=build-env /src/main /usr/bin/local-da

EXPOSE 7980

CMD ["local-da", "-listen-all"]

0 comments on commit f55f4d2

Please sign in to comment.