optimize the order of instructions in Dockerfile

This commit is contained in:
seedgou 2019-05-20 11:17:40 +08:00
parent f40a7160b8
commit 7e35e18164
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,9 @@
FROM golang:alpine AS build-env
RUN apk add --no-cache git make
WORKDIR /src
ADD . /src
RUN apk add --no-cache git make
RUN make doh-client/doh-client
FROM alpine:latest

View File

@ -1,8 +1,9 @@
FROM golang:alpine AS build-env
RUN apk add --no-cache git make
WORKDIR /src
ADD . /src
RUN apk add --no-cache git make
RUN make doh-server/doh-server
FROM alpine:latest