Skip to content

Commit

Permalink
fix binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed May 26, 2024
1 parent 3d9b196 commit b8eff81
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
CMD ["/run/daemon"]

0 comments on commit b8eff81

Please sign in to comment.