1
Fork 0

Use libsqlite3

This commit is contained in:
Jan-Lukas Else 2020-03-29 11:02:04 +02:00
parent f4e738b2c7
commit ed38de8674
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
FROM golang:1.14-alpine as build
RUN apk add --no-cache git gcc musl-dev
RUN apk add --no-cache git gcc musl-dev sqlite-dev
ADD . /app
WORKDIR /app
RUN go build
RUN go build --tags "libsqlite3 linux"
FROM alpine:3.11
RUN apk add --no-cache sqlite-dev
COPY --from=build /app/goshort /bin/
WORKDIR /app
VOLUME /app/config