dumb/Dockerfile

30 lines
668 B
Docker
Raw Normal View History

FROM docker.io/golang:1.22.2-alpine3.19 AS build
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 . .
COPY .git .
RUN make build
2022-12-20 16:40:20 +01:00
2024-03-14 16:52:49 +00:00
###############################################################
FROM scratch
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."
COPY --from=build /code/dumb .
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2022-12-20 16:40:20 +01:00
EXPOSE 5555/tcp
CMD ["./dumb"]