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