mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-16 09:53:12 +00:00
✨ Add Dockerfile for containerization
This commit is contained in:
parent
f37a6d7747
commit
30df1934b0
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM golang:1.22.5-alpine AS builder
|
||||
|
||||
WORKDIR /dodo
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
|
||||
RUN go build -o dodo
|
||||
RUN echo "{}" > config.json
|
||||
|
||||
FROM gcr.io/distroless/static-debian12:latest
|
||||
|
||||
WORKDIR /dodo
|
||||
|
||||
COPY --from=builder /dodo/dodo /dodo/dodo
|
||||
COPY --from=builder /dodo/config.json /dodo/config.json
|
||||
|
||||
ENTRYPOINT ["./dodo", "-c", "/dodo/config.json"]
|
||||
CMD []
|
Loading…
x
Reference in New Issue
Block a user