Using the explicit COPY command instead of ADD in docker build
This commit is contained in:
committed by
ncthompson
parent
95735ff319
commit
3ecb2933cb
@@ -1,7 +1,7 @@
|
|||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
RUN apk add build-base linux-headers git
|
RUN apk add build-base linux-headers git
|
||||||
RUN mkdir /build
|
RUN mkdir /build
|
||||||
ADD . /build/
|
COPY . /build/
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN go build -o invertergui ./cmd/invertergui
|
RUN go build -o invertergui ./cmd/invertergui
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user