mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
Issue 11: changed build command as 'build_linux' is now headless. Also added '-addr' to ENTRYPOINT so docker port forwarding works
This commit is contained in:
parent
adefccd5bc
commit
5e9647e8f9
@ -2,9 +2,8 @@ FROM golang:1.15 AS build
|
||||
RUN apt install gcc -y
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN GOOS=linux go build -tags "sqlite_foreign_keys release linux" -ldflags="-s -w" -o /usr/local/bin/yarr main.go
|
||||
RUN ls /usr/local/bin
|
||||
RUN make build_linux
|
||||
|
||||
FROM ubuntu:20.04
|
||||
COPY --from=build /usr/local/bin/yarr /usr/bin/yarr
|
||||
ENTRYPOINT ["/usr/bin/yarr"]
|
||||
COPY --from=build /src/_output/linux/yarr /usr/bin/yarr
|
||||
ENTRYPOINT ["/usr/bin/yarr", "-addr", "0.0.0.0:7070"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user