Skip to content

Commit

Permalink
faster image building
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonNekoGH committed Mar 30, 2024
1 parent 6084293 commit bc0a2a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ RUN GO111MODULE=on

RUN mkdir /app

COPY . /app/insights-bot

WORKDIR /app/insights-bot

COPY go.mod /app/insights-bot/go.mod
COPY go.sum /app/insights-bot/go.sum

RUN go env
RUN go env -w CGO_ENABLED=0
RUN go mod download

COPY . /app/insights-bot

RUN go build -a -o "release/insights-bot" "github.com/nekomeowww/insights-bot/cmd/insights-bot"

# --- runner ---
Expand Down

0 comments on commit bc0a2a4

Please sign in to comment.