Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Feb 8, 2024
1 parent e218e74 commit 38dda4b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:1.22-alpine as build
WORKDIR /app

COPY ./server/go.mod ./server/go.sum ./
RUN go mod download

COPY ./server/ ./

RUN go build -o /app/blockmeta ./cmd/blockmeta/*

####

FROM alpine:edge

RUN apk --no-cache add ca-certificates tzdata

WORKDIR /app

COPY --from=build /app/blockmeta /app/blockmeta

EXPOSE 9000

ENTRYPOINT [ "/app/blockmeta" ]

0 comments on commit 38dda4b

Please sign in to comment.