mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
15 lines
447 B
Plaintext
15 lines
447 B
Plaintext
FROM golang:alpine3.18 AS build
|
|
RUN apk add build-base git
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/go/pkg \
|
|
make build_linux
|
|
|
|
FROM alpine:latest
|
|
RUN apk add --no-cache ca-certificates && \
|
|
update-ca-certificates
|
|
COPY --from=build /src/_output/linux/yarr /usr/local/bin/yarr
|
|
EXPOSE 7070
|
|
ENTRYPOINT ["/usr/local/bin/yarr"]
|
|
CMD ["-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"]
|