|
You are here |
infinitedigits.co | ||
| | | | |
www.neerajsidhaye.com
|
|
| | | | | Creating optimized docker image for GO application using multi stage build - using alpine image and then produce a small image with only binary in a scratch image. Let's read further... | |
| | | | |
hjr265.me
|
|
| | | | | Docker has been providing a health check mechanism for quite some time. It is useful in identifying issues with programs that can fail in ways other than just outright crashing. And it is easy to set up. Docker health checks work periodically running a program within the container and observing its exit status. If it exits with a 0, the container is considered healthy. If it exits with a 1, the container is considered to be unhealthy. | |
| | | | |
memo.mx
|
|
| | | | | Docker multi-stage build is a great way to build a container images with a minimal footprint. Compiled languages like Go or Rust can take advantage of this by just shipping a binary to a container This is an example from the official docs: FROM golang:1.16 WORKDIR /go/src/github.com/alexellis/href-counter/ RUN go get -d -v golang.org/x/net/html COPY app.go ./ RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app . FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /root/ COPY --from=0 /go/src/github. | |
| | | | |
bijanebrahimi.github.io
|
|
| | | [AI summary] This article explains how to set up a cross-compiler for FreeBSD on a Linux machine, detailing the necessary steps to configure and build the toolchain, including dependencies like binutils, GMP, MPFR, and MPC. | ||