mirror of
https://github.com/simon987/task_tracker_drone_go.git
synced 2025-04-10 14:06:42 +00:00
Docker
This commit is contained in:
parent
e1ab58efb0
commit
54c6abc9e4
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user