From 3b1bed8517fc27f723aa5a7214f8c799743c8a1d Mon Sep 17 00:00:00 2001 From: Dirk Nederveen Date: Fri, 3 Feb 2023 07:13:58 +0100 Subject: [PATCH] Update dockerfiles --- .dockerignore | 1 + Dockerfile | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2f2426a..e89925e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ honk.db* blob.db* ./honk +.git* diff --git a/Dockerfile b/Dockerfile index f11f457..a89a7f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,15 @@ -FROM golang:1.16 +FROM golang:1.19 RUN apt update && apt install -y libsqlite3-dev && rm -rf /var/cache/apt/* RUN mkdir /honk-src -COPY *.go docs/ toys/ vendor/ views/ /honk-src/ - WORKDIR /honk-src +COPY go.mod go.sum /honk-src/ +COPY . /honk-src/ +RUN go get && go mod vendor + + RUN make RUN mv ./honk /bin/honk