Fix docker image build speed by reusing the zs build image with extra tools

This commit is contained in:
James Mills 2023-03-16 18:58:51 +10:00
parent b747a17103
commit 2fd0ad63a0
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -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 . .