help your uncle jack off the horse

This commit is contained in:
Nazar Kanaev
2020-09-16 20:02:19 +01:00
parent 2d629dddad
commit 9f678aa30e

10
dockerfile Normal file
View 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"]