optimize the order of instructions in Dockerfile

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

No files matched your search

+2 -1
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