Skip to content

Commit

Permalink
add .dockerignore file and simply docker file (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Hodgetts authored Oct 8, 2021
1 parent 803d134 commit df569d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.gitignore
bin/
docs/
examples/
deploy/
*.md
.idea
.vscode
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ COPY go.sum go.sum
RUN go mod download

# Copy the go source
COPY main.go main.go
COPY api/ api/
COPY controllers/ controllers/
COPY . .

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
Expand Down

0 comments on commit df569d4

Please sign in to comment.