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
|
# Build
|
||||||
FROM golang:alpine AS build
|
FROM prologic/zs AS build
|
||||||
|
|
||||||
RUN apk add --no-cache -U build-base git
|
|
||||||
|
|
||||||
RUN mkdir -p /src
|
RUN mkdir -p /src
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy Makefile
|
|
||||||
COPY Makefile ./
|
|
||||||
|
|
||||||
# Install deps
|
|
||||||
RUN make deps
|
|
||||||
|
|
||||||
# Copy content
|
# Copy content
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user