Update dockerfiles

This commit is contained in:
Dirk Nederveen 2023-02-03 07:13:58 +01:00
parent 5d36d0ecf9
commit 3b1bed8517
Signed by: dirk
GPG Key ID: 30C016E96E2219B8
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,4 @@
honk.db*
blob.db*
./honk
.git*

View File

@ -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