From 2fd0ad63a0fe492ab463695755ea0fd6c351fbd3 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Thu, 16 Mar 2023 18:58:51 +1000 Subject: [PATCH] Fix docker image build speed by reusing the zs build image with extra tools --- Dockerfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index d134590..ac8ce5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,10 @@ # Build -FROM golang:alpine AS build - -RUN apk add --no-cache -U build-base git +FROM prologic/zs AS build RUN mkdir -p /src WORKDIR /src -# Copy Makefile -COPY Makefile ./ - -# Install deps -RUN make deps - # Copy content COPY . .