Skip to content

Commit

Permalink
fix: docker build used makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fallion committed Jan 23, 2021
1 parent e8c12e7 commit e435644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN apk add --no-cache make git gcc musl-dev

# This step is done separately than `COPY . /app/` in order to
# cache dependencies.
COPY go.mod go.sum Makefile /app/
RUN make install_deps
COPY go.mod go.sum /app/
RUN go mod download

COPY . /app/
RUN CGO_ENABLED=0 go build -a -tags "osusergo netgo" --ldflags "-linkmode external -extldflags '-static'" -o build/release-notary .
Expand Down

0 comments on commit e435644

Please sign in to comment.