Albirew/mangadex-next
Albirew
/
mangadex-next
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2024-03-02. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
mangadex-next/Dockerfile

20 lignes
382 B
Docker

FROM golang:1.16.0-alpine AS build
RUN apk update && apk add --no-cache git
WORKDIR /build
COPY . .
RUN GOOS=linux go build -ldflags="-w -s" -o mangadex-api
FROM alpine
COPY --from=build /build/mangadex-api /usr/bin/mangadex-api
ENTRYPOINT [ "/usr/bin/mangadex-api" ]
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=30s \
CMD curl -f 127.0.0.1:3000/_/healthy || exit 1