File: Dockerfile.binaries

package info (click to toggle)
golang-github-mendersoftware-mender-artifact 3.9.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, experimental
  • size: 4,136 kB
  • sloc: makefile: 128; sh: 128
file content (15 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM golang:1.18 as builder
RUN apt-get update && \
    apt-get install -y \
    gcc gcc-mingw-w64 gcc-multilib \
    git make \
    musl-dev liblzma-dev libssl-dev
RUN mkdir -p /go/src/github.com/mendersoftware/mender-artifact
WORKDIR /go/src/github.com/mendersoftware/mender-artifact
COPY ./ .
RUN make build-natives

FROM alpine:3.16.2
RUN apk add --no-cache libc6-compat xz-dev libressl-dev
COPY --from=builder /go/src/github.com/mendersoftware/mender-artifact/mender-artifact* /go/bin/
ENTRYPOINT [ "/go/bin/mender-artifact-linux" ]