Compare commits

...

2 Commits

Author SHA1 Message Date
Dark Dragon
96835ebd33 Set entrypoint to yarr executable
This allows passing args as CMD directly without knowing the path to yarr within the container
2024-04-09 12:19:09 +01:00
nkanaev
c896f779b5
Update dockerfile 2024-04-09 11:21:11 +01:00

View File

@ -1,4 +1,4 @@
FROM golang:alpine AS build
FROM golang:alpine3.18 AS build
RUN apk add build-base git
WORKDIR /src
COPY . .
@ -9,4 +9,5 @@ RUN apk add --no-cache ca-certificates && \
update-ca-certificates
COPY --from=build /src/_output/linux/yarr /usr/local/bin/yarr
EXPOSE 7070
CMD ["/usr/local/bin/yarr", "-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"]
ENTRYPOINT ["/usr/local/bin/yarr"]
CMD ["-addr", "0.0.0.0:7070", "-db", "/data/yarr.db"]