From 115f6713ed98b75983f3563f8087e327e8998f08 Mon Sep 17 00:00:00 2001 From: corverroos Date: Wed, 6 Apr 2022 18:04:14 +0200 Subject: [PATCH] Dockerfile: fix missing git build info --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b569d88bd..195fa470e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ # Container for building Go binary. FROM golang:1.18-alpine AS builder -# Cgo support -RUN apk add --no-cache build-base -# Copy app. +# Install dependencies +RUN apk add --no-cache build-base git +# Prep and copy source WORKDIR /app COPY . . # Build with Go module and Go build caches. RUN \ --mount=type=cache,target=/go/pkg \ --mount=type=cache,target=/root/.cache/go-build \ - go build -o charon main.go + go build -o charon . # Copy final binary into light stage. FROM alpine:3