fix(ci,docker): update version string and optimize Dockerfile
Some checks failed
docker / docker (push) Failing after 13s

This commit is contained in:
2025-11-20 11:18:03 +01:00
parent b0efae1514
commit 689dcb8406
2 changed files with 8 additions and 9 deletions

View File

@@ -1,12 +1,11 @@
FROM golang:latest
WORKDIR /usr/src/app
FROM golang:latest as builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -v -o /usr/local/bin/svg-templater ./...
RUN rm -rf ./*
RUN go build -v -o svg-templater ./...
CMD ["svg-templater"]
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/svg-templater /usr/local/bin/svg-templater
CMD ["./svg-templater"]