mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
help your uncle jack off the horse
This commit is contained in:
10
dockerfile
Normal file
10
dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
|
||||
FROM ubuntu:20.04
|
||||
COPY --from=build /usr/local/bin/yarr /usr/bin/yarr
|
||||
ENTRYPOINT ["/usr/bin/yarr"]
|
Reference in New Issue
Block a user