Skip to content

Commit

Permalink
fix: make build fail before download dependencies package when build …
Browse files Browse the repository at this point in the history
…docker image
  • Loading branch information
xushuhui committed Jul 24, 2024
1 parent a399aca commit c822da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM golang:1.19 AS builder
COPY . /src
WORKDIR /src

RUN GOPROXY=https://goproxy.cn make build
ENV GOPROXY https://goproxy.cn
RUN go mod tidy && make build

FROM debian:stable-slim

Expand Down

0 comments on commit c822da8

Please sign in to comment.