Skip to content

Commit

Permalink
optimize the order of instructions in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed May 20, 2019
1 parent f40a716 commit 7e35e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.client
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.server
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7e35e18

Please sign in to comment.