1
0
Fork 0
This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
mangadex-next/Dockerfile
2021-03-21 18:40:39 +00:00

19 lines
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