mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 06:02:44 +00:00
* bump alpine to 3.22; include erofs-utils Signed-off-by: Avi Deitcher <avi@deitcher.net> * tools/alpine: Update to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * tools: Update to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update use of tools to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update use of test packages to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * pkgs: Update packages to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update package tags Signed-off-by: Avi Deitcher <avi@deitcher.net> * fix scaleway error Signed-off-by: Avi Deitcher <avi@deitcher.net> --------- Signed-off-by: Avi Deitcher <avi@deitcher.net>
20 lines
513 B
Docker
20 lines
513 B
Docker
FROM linuxkit/alpine:6090baae063eb5023c9601966e88df831f789a70 AS build
|
|
|
|
RUN apk add --no-cache go musl-dev
|
|
ARG GOPKGVERSION
|
|
ENV ldflags="-X main.Version=$GOPKGVERSION"
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
|
|
# Hack to work around an issue with go on arm64 requiring gcc
|
|
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
|
|
|
COPY . /go/src/logwrite/
|
|
RUN go-compile.sh /go/src/logwrite
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=build /go/bin/logwrite usr/bin/logwrite
|
|
CMD ["/usr/bin/logwrite"]
|