From 6bde7ba8e5ef91c1be233b9e076044fe9dc4d6c0 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 2 Jul 2026 16:30:00 +0800 Subject: [PATCH] Use included Makefile --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26d1c62..552594a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,17 +2,15 @@ FROM golang:1-alpine AS build WORKDIR /alps -RUN apk add --no-cache git && \ +RUN apk add --no-cache git make && \ git clone https://git.sr.ht/~migadu/alps . && \ - CGO_ENABLED=0 go build -tags netgo -v -a -ldflags '-extldflags "-static"' -o "alps" cmd/alps/main.go + CGO_ENABLED=0 make all # release FROM alpine:3 AS release WORKDIR / -COPY --from=build ./alps/alps ./alps -COPY --from=build ./alps/themes/ ./themes -COPY --from=build ./alps/plugins/ ./plugins +COPY --from=build ./build/alps ./alps COPY ./init ./init LABEL org.opencontainers.image.source=https://git.nemunai.re/nemunaire/docker-alps