Keep It Simple Stupid Stats (KISSS)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
511 B

FROM golang:1.14-alpine as build
RUN apk add --no-cache git gcc musl-dev tzdata sqlite-dev
RUN go get
ADD . /app
RUN packr2
RUN go test --tags "libsqlite3 linux"
RUN go build --tags "libsqlite3 linux"
FROM alpine:3.11
RUN apk add --no-cache tzdata sqlite-dev ca-certificates
RUN adduser -S -D -H -h /app kis3
COPY --from=build /app/kis3 /bin/
RUN mkdir /app && chown -R kis3 /app
USER kis3
RUN mkdir data
VOLUME /app/data
CMD ["kis3"]