Skip to content

Commit

Permalink
fix: Dockerfile error
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Apr 3, 2024
1 parent 971d3b0 commit 174723c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions docker/basic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,8 @@ COPY . .

RUN make work-init

RUN --mount=type=cache,target=/go/pkg/mod make deps

RUN CGO_ENABLED=0 GOOS=linux make build-${COMPONENT}
FROM golang:1.22 as builder
WORKDIR /go/src/github.com/ahdark-services/pegasus

ARG COMPONENT

COPY . .

RUN make work-init

RUN --mount=type=cache,target=/go/pkg/mod make deps
RUN --mount=type=cache,target=/go/pkg/mod CGO_ENABLED=0 GOOS=linux make build-${COMPONENT}
RUN --mount=type=cache,target=/go/pkg/mod go mod download
RUN CGO_ENABLED=0 GOOS=linux make build-go-${COMPONENT}

FROM alpine:3.7 as runner
ARG COMPONENT
Expand Down

0 comments on commit 174723c

Please sign in to comment.