chore(NOTICKET): Adds Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fd320d9ec3
commit
bece933718
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM docker.io/library/golang:alpine as builder
|
||||||
|
|
||||||
|
ADD . /cmw
|
||||||
|
|
||||||
|
RUN apk add git && \
|
||||||
|
cd /cmw && \
|
||||||
|
go get -u . && \
|
||||||
|
go build -o cmw
|
||||||
|
|
||||||
|
FROM docker.io/library/alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /cmw/cmw /cmw
|
||||||
|
|
||||||
|
ENTRYPOINT ["/cmw"]
|
Loading…
Add table
Reference in a new issue