mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-10-30 22:43:29 +00:00 
			
		
		
		
	build docker v2.5
This commit is contained in:
		| @@ -1,13 +1,12 @@ | |||||||
| FROM golang:1.21.5-alpine AS build | FROM golang:1.21.5-alpine AS build | ||||||
| RUN apk add build-base git | RUN apk add --no-cache build-base git | ||||||
| WORKDIR /src |  | ||||||
| COPY . . |  | ||||||
| ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE" |  | ||||||
| RUN make build_linux |  | ||||||
|  |  | ||||||
| FROM alpine:latest | WORKDIR /src | ||||||
| RUN apk add --no-cache ca-certificates && \ | RUN git clone https://github.com/nkanaev/yarr.git . | ||||||
|     update-ca-certificates | ENV CGO_CFLAGS="-D_LARGEFILE64_SOURCE" | ||||||
| COPY --from=build /src/_output/linux/yarr /usr/local/bin/yarr | RUN make build_default | ||||||
| EXPOSE 7070 |  | ||||||
| CMD ["/usr/local/bin/yarr", "-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"] | 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"] | ||||||
		Reference in New Issue
	
	Block a user