Merge pull request #12 from eldridgea/issue-11
Issue 11: changed build command as 'build_linux' is now headless.
This commit is contained in:
commit
762beb5c56
1 changed files with 3 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue