Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mondragonfx committed Aug 19, 2024
1 parent 1239dc7 commit 102bfbc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.mod go.mod ./
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

# Copy the go source
COPY cmd/main.go cmd/main.go
COPY api/ api/
COPY internal/controller/ internal/controller/
COPY cloud/ cloud/
COPY util/ util/
# Copy the sources
COPY ./ ./

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down

0 comments on commit 102bfbc

Please sign in to comment.