mirror of
https://github.com/RWejlgaard/octopus_exporter.git
synced 2026-05-06 04:14:44 +00:00
dockerfile shenanigans
This commit is contained in:
parent
7001e5a7ec
commit
150360769f
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ FROM golang:1.22-alpine AS builder
|
|||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY cmd/ cmd/
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o /octopus_exporter ./cmd/octopus_exporter
|
||||
|
||||
FROM scratch
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue