general cleanup
Some checks failed
Build and publish the docker image / build (push) Failing after 1m8s
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:
24
Dockerfile
24
Dockerfile
@ -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"]
|
||||
|
||||
|
Reference in New Issue
Block a user