Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c822da8

Browse files
committedJul 24, 2024·
fix: make build fail before download dependencies package when build docker image
1 parent a399aca commit c822da8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM golang:1.19 AS builder
33
COPY . /src
44
WORKDIR /src
55

6-
RUN GOPROXY=https://goproxy.cn make build
6+
ENV GOPROXY https://goproxy.cn
7+
RUN go mod tidy && make build
78

89
FROM debian:stable-slim
910

0 commit comments

Comments
 (0)
Please sign in to comment.