mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
Improve cacheablility of docker builds
This commit is contained in:
+5
-1
@@ -2,8 +2,12 @@ FROM golang:1.17 as build
|
||||
LABEL description="Build container"
|
||||
|
||||
ENV CGO_ENABLED 0
|
||||
COPY . /build
|
||||
WORKDIR /build
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN go build github.com/RafayLabs/rcloud-base
|
||||
|
||||
FROM alpine:latest as runtime
|
||||
|
||||
Reference in New Issue
Block a user