general cleanup
Some checks failed
Build and publish the docker image / build (push) Failing after 1m8s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-19 12:29:05 +03:00
parent 9e307b7da4
commit 7cea387f02
27 changed files with 94 additions and 535 deletions

View File

@ -1,28 +1,16 @@
FROM docker.io/golang:1.22.10-alpine3.21 AS build
FROM golang:1.23.4 AS build
RUN apk add make git curl
RUN go install github.com/a-h/templ/cmd/templ@latest
WORKDIR /code
COPY go.mod ./
COPY go.sum ./
COPY go.mod go.sum ./
RUN go mod download
RUN make CGO_ENABLED=0
COPY . .
COPY .git .
RUN make build
###############################################################
FROM docker.io/alpine:3.21
LABEL org.opencontainers.image.source="https://github.com/rramiachraf/dumb"
LABEL org.opencontainers.image.url="https://github.com/rramiachraf/dumb"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.description="Private alternative front-end for Genius."
FROM alpine:3.21
COPY --from=build /code/dumb .
EXPOSE 5555/tcp
CMD ["./dumb"]