Skip to content

Commit

Permalink
avoid adding modules in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbafilho committed Feb 9, 2022
1 parent c3aa9eb commit 9235741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ services:
- KUBECONFIG=/app/kubeconfig.yaml
volumes:
- .:/app
- ~/go/pkg/mod:/go/pkg/mod
working_dir: /app
depends_on:
- k3s
Expand Down
6 changes: 3 additions & 3 deletions test.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/s

RUN mkdir /app
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
# COPY go.mod .
# COPY go.sum .
# RUN go mod download

0 comments on commit 9235741

Please sign in to comment.