add dockerfile for cli and add to drone

This commit is contained in:
viktorbarzin 2021-03-16 00:05:05 +00:00
parent 70d306d0d2
commit 899805ddac
4 changed files with 41 additions and 8 deletions

8
cli/Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM golang:alpine
RUN mkdir /app
ADD . /app/
WORKDIR /app
RUN go build -o main .
RUN adduser -S -D -H -h /app appuser
USER appuser
CMD ["./main"]