chore(tooling): add a Dockerfile along with some makefile container targets
This commit is contained in:
parent
7ef03c6f55
commit
7ac6c9c407
2 changed files with 45 additions and 2 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
##### Build ####################################################################
|
||||
FROM docker.io/library/golang:1.23-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download && go mod verify
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build ./...
|
||||
|
||||
##### Run ######################################################################
|
||||
FROM alpine:3.20
|
||||
|
||||
ENV LANG en_US.utf8
|
||||
|
||||
RUN apk upgrade --no-cache
|
||||
|
||||
COPY --from=0 /usr/src/app/ods /usr/local/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/ods"]
|
Loading…
Add table
Add a link
Reference in a new issue