mirror of
https://github.com/m13253/dns-over-https.git
synced 2024-09-21 07:47:09 +00:00
optimize the order of instructions in Dockerfile
This commit is contained in:
parent
f40a7160b8
commit
7e35e18164
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user