Dockerfile
This commit is contained in:
parent
e0e4813806
commit
5c34ce2825
2 changed files with 14 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -23,3 +23,4 @@
|
||||||
!*/
|
!*/
|
||||||
|
|
||||||
!hash.sh
|
!hash.sh
|
||||||
|
!Dockerfile
|
||||||
|
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM chimeralinux/chimera:latest AS base
|
||||||
|
RUN apk add go
|
||||||
|
|
||||||
|
FROM base AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN go build -ldflags "-s -w" -o diodemail -buildmode=pie ./cmd/server
|
||||||
|
|
||||||
|
FROM base AS runner
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /app/diodemail ./diodemail
|
||||||
|
|
||||||
|
CMD ["./diodemail"]
|
Loading…
Reference in a new issue