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:
Eldridge Alexander 2020-09-17 12:26:38 -04:00
parent adefccd5bc
commit 5e9647e8f9

View File

@ -2,9 +2,8 @@ FROM golang:1.15 AS build
RUN apt install gcc -y RUN apt install gcc -y
WORKDIR /src WORKDIR /src
COPY . . COPY . .
RUN GOOS=linux go build -tags "sqlite_foreign_keys release linux" -ldflags="-s -w" -o /usr/local/bin/yarr main.go RUN make build_linux
RUN ls /usr/local/bin
FROM ubuntu:20.04 FROM ubuntu:20.04
COPY --from=build /usr/local/bin/yarr /usr/bin/yarr COPY --from=build /src/_output/linux/yarr /usr/bin/yarr
ENTRYPOINT ["/usr/bin/yarr"] ENTRYPOINT ["/usr/bin/yarr", "-addr", "0.0.0.0:7070"]