12 lines
271 B
Docker
12 lines
271 B
Docker
|
FROM golang:1.21.3-bookworm
|
||
|
RUN apt update && apt install -y build-essential make
|
||
|
|
||
|
WORKDIR /app
|
||
|
COPY . .
|
||
|
RUN go mod download
|
||
|
RUN make build-tools
|
||
|
RUN go build -o build/custodial main.go
|
||
|
RUN go build -o build/agent agent/main.go
|
||
|
|
||
|
CMD [ "./custodial", "--env=production" ]
|