mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 21:06:03 +03:00
Fix docker image build speed by reusing the zs build image with extra tools
This commit is contained in:
parent
b747a17103
commit
2fd0ad63a0
10
Dockerfile
10
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 . .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user