This commit is contained in:
simon987 2020-07-05 11:07:07 -04:00
parent e1ab58efb0
commit 54c6abc9e4

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
# Build
FROM golang:1.14 as go_build
WORKDIR /build/
COPY *.go go.mod ./
RUN GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -o tt_drone_go .
FROM ubuntu
RUN apt update && apt install -y python3 python3-pip
WORKDIR /root/
COPY --from=go_build ["/build/tt_drone_go", "/root/"]
ENTRYPOINT ["/root/tt_drone_go"]