From b8eff814585e2db3dbba2c4b9aab1fffa07996e8 Mon Sep 17 00:00:00 2001 From: cubicroot Date: Sun, 26 May 2024 14:24:57 +0200 Subject: [PATCH] fix binary name --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 355b4b5..f9fe015 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,14 @@ -FROM golang:1.22 as builder +FROM golang:1.22-alpine as builder ARG VERSION="development" WORKDIR /run COPY ./ ./ RUN go mod download -RUN go build -ldflags="-w -s -X github.com/CubicrootXYZ/matrix-reminder-and-calendar-bot/cmd.Version=${VERSION}" -o /run ./cmd/remindme +RUN go build -o /run ./cmd/daemon.go -FROM golang:1.22 -RUN apt update && apt upgrade -y && \ - apt install -y gcc && \ - apt install libolm-dev npm -y -COPY --from=builder /run/remindme /run/ +FROM golang:1.22-alpine +COPY --from=builder /run/daemon /run/ WORKDIR /run -CMD ["/run/remindme"] \ No newline at end of file +CMD ["/run/daemon"] \ No newline at end of file