mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-10 03:58:28 +00:00
Build Go binary inside Docker (#22)
* Build Go binary inside Docker You can (and should) use Docker to build Go programs. With this updated `Dockerfile` you can build the binary with one simple command `docker build -t your-image-name:tag .`, then push it to your favorite registry and use it in the Helm chart. * Update Dockerfile from origin
This commit is contained in:
parent
9155435e2d
commit
3abf447b47
@ -1,3 +1,8 @@
|
||||
FROM golang:alpine AS build
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/ingress-controller ./cmd/caddy
|
||||
|
||||
FROM alpine:latest as certs
|
||||
RUN apk --update add ca-certificates
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user