mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-25 21:49:20 +00:00
12 lines
367 B
Plaintext
12 lines
367 B
Plaintext
FROM golang:1.21.5-alpine AS build
|
|
RUN apk add --no-cache build-base git
|
|
|
|
WORKDIR /src
|
|
RUN git clone https://github.com/nkanaev/yarr.git .
|
|
ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE"
|
|
RUN make build_default
|
|
|
|
FROM alpine:3.19
|
|
COPY --from=build /src/_output/yarr /usr/local/bin/yarr
|
|
RUN mkdir /data
|
|
CMD ["/usr/local/bin/yarr", "-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"] |