mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 04:00:27 +00:00
28e809b9d8
Bumps the docker-dependency group in /docker with 1 update: golang. Updates `golang` from 1.26rc2-alpine3.22 to 1.26-alpine3.22 --- updated-dependencies: - dependency-name: golang dependency-version: 1.26-alpine3.22 dependency-type: direct:production dependency-group: docker-dependency ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
25 lines
548 B
Docker
25 lines
548 B
Docker
# Copyright (c) Abstract Machines
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM golang:1.26-alpine3.22 AS builder
|
|
ARG SVC
|
|
ARG GOARCH
|
|
ARG GOARM
|
|
ARG VERSION
|
|
ARG COMMIT
|
|
ARG TIME
|
|
|
|
WORKDIR /go/src/github.com/absmach/magistrala
|
|
COPY . .
|
|
RUN apk update \
|
|
&& apk add make upx\
|
|
&& make $SVC \
|
|
&& upx build/$SVC \
|
|
&& mv build/$SVC /exe
|
|
|
|
FROM scratch
|
|
# Certificates are needed so that mailing util can work.
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=builder /exe /
|
|
ENTRYPOINT ["/exe"]
|