Merge pull request #12 from eldridgea/issue-11

Issue 11: changed build command as 'build_linux' is now headless.
This commit is contained in:
nkanaev 2020-09-17 20:17:46 +01:00 committed by GitHub
commit 762beb5c56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]