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:
15
TestDockerfile
Normal file
15
TestDockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM golang:1.15.7-alpine3.13 as builder
|
||||
|
||||
LABEL maintainer="Łukasz Budnik lukasz.budnik@gmail.com"
|
||||
|
||||
# build yosoy
|
||||
ADD . /go/yosoy
|
||||
RUN cd /go/yosoy && go build
|
||||
|
||||
FROM alpine:3.13
|
||||
COPY --from=builder /go/yosoy/yosoy /bin
|
||||
|
||||
# register entrypoint
|
||||
ENTRYPOINT ["yosoy"]
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user