Skip to content

Commit

Permalink
setting :: 명령어 실행 순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Jan 9, 2024
1 parent 79ac1e2 commit 788f05a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ COPY .bingo .bingo
COPY Makefile main.go ./
COPY pkg pkg

# Install build dependencies
RUN if grep -i -q alpine /etc/issue; then \
apk add --no-cache gcc g++ make git; \
fi

RUN make gen-go

RUN go mod tidy \
&& go get -u -d -v ./...
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w' -o project

RUN apt update && apt install -y make
RUN make gen-go
RUN make build

FROM scratch
Expand Down

0 comments on commit 788f05a

Please sign in to comment.