converted to go modules, added gorilla web toolkit, added test, changed yosoy to respond with JSON rather than plain text, added travis support

This commit is contained in:
Łukasz Budnik
2021-02-04 00:29:22 +01:00
parent cd90e887fe
commit 1a1f4cf14d
9 changed files with 207 additions and 154 deletions

View File

@@ -1,13 +1,13 @@
FROM golang:1.13.5-alpine3.10 as builder
FROM golang:1.15.7-alpine3.13 as builder
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
# build yosoy
RUN apk add git
RUN apk --update add git
RUN git clone https://github.com/lukaszbudnik/yosoy.git
RUN cd /go/yosoy && go build
FROM alpine:3.10
FROM alpine:3.13
COPY --from=builder /go/yosoy/yosoy /bin
# register entrypoint