Skip to content

Commit

Permalink
update dockerfiles to just copy the code
Browse files Browse the repository at this point in the history
  • Loading branch information
kannon92 committed Jan 25, 2025
1 parent 5fa06db commit c6265c3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 59 deletions.
11 changes: 1 addition & 10 deletions docs/book/src/cronjob-tutorial/testdata/project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
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/ internal/
COPY . .

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
11 changes: 1 addition & 10 deletions docs/book/src/getting-started/testdata/project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
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/ internal/
COPY . .

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
11 changes: 1 addition & 10 deletions docs/book/src/multiversion-tutorial/testdata/project/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
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/ internal/
COPY . .

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
11 changes: 1 addition & 10 deletions testdata/project-v4-multigroup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
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/ internal/
COPY . .

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
11 changes: 1 addition & 10 deletions testdata/project-v4-with-plugins/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
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/ internal/
COPY . .

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
10 changes: 1 addition & 9 deletions testdata/project-v4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@ ARG TARGETOS
ARG TARGETARCH

WORKDIR /workspace
# Copy the Go Modules manifests
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/ internal/
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 c6265c3

Please sign in to comment.