add dockerfile for cli and add to drone
This commit is contained in:
parent
70d306d0d2
commit
899805ddac
4 changed files with 41 additions and 8 deletions
8
cli/Dockerfile
Normal file
8
cli/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue