Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
feat: consolidate start command and remove extra files
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Jan 17, 2024
1 parent 2060b53 commit a987cd8
Show file tree
Hide file tree
Showing 14 changed files with 185 additions and 425 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@ FROM golang:1.21.1 AS builder
WORKDIR /app
COPY . .

RUN CGO_ENABLED=0 GOOS=linux go build -o mev-commit ./cmd/main.go
RUN CGO_ENABLED=0 make build

FROM alpine:latest

RUN apk --no-cache add curl
RUN apk add --no-cache jq

COPY --from=builder /app/mev-commit /app/mev-commit
COPY --from=builder /app/config /config
COPY --from=builder /app/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY --from=builder /app/bin/mev-commit /usr/local/bin/mev-commit

EXPOSE 13522 13523 13524

ENTRYPOINT ["/entrypoint.sh"]

ENTRYPOINT ["mev-commit"]
2 changes: 1 addition & 1 deletion Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ COPY mev-commit /usr/local/bin/mev-commit

EXPOSE 13522 13523 13524

ENTRYPOINT ["mev-commit", "start"]
ENTRYPOINT ["mev-commit"]
15 changes: 0 additions & 15 deletions Dockerfile.release

This file was deleted.

97 changes: 0 additions & 97 deletions cmd/init.go

This file was deleted.

Loading

0 comments on commit a987cd8

Please sign in to comment.