2024-07-12 20:38:54 +01:00
|
|
|
FROM golang:1.22.2-alpine3.19 AS build
|
2024-03-13 14:13:12 +00:00
|
|
|
|
2024-03-13 23:33:02 +00:00
|
|
|
RUN apk add make git curl
|
2022-12-20 16:40:20 +01:00
|
|
|
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
COPY . .
|
2024-03-04 14:59:47 +01:00
|
|
|
RUN make build
|
2022-12-20 16:40:20 +01:00
|
|
|
|
2024-03-14 16:52:49 +00:00
|
|
|
###############################################################
|
|
|
|
|
2024-03-14 13:22:45 +00:00
|
|
|
FROM scratch
|
2024-03-13 14:13:12 +00:00
|
|
|
|
2024-03-14 16:52:49 +00:00
|
|
|
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."
|
|
|
|
|
2024-03-13 14:13:12 +00:00
|
|
|
COPY --from=build /code/dumb .
|
2024-03-14 13:22:45 +00:00
|
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
2024-03-13 14:13:12 +00:00
|
|
|
|
2022-12-20 16:40:20 +01:00
|
|
|
EXPOSE 5555/tcp
|
|
|
|
|
2024-03-13 14:13:12 +00:00
|
|
|
CMD ["./dumb"]
|
|
|
|
|