Skip to content

Commit

Permalink
fix: docker release
Browse files Browse the repository at this point in the history
docs: update badges
  • Loading branch information
jon4hz committed Apr 30, 2022
1 parent 54aa8fa commit 83d2d7d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM golang:1.17 as builder
FROM gcr.io/distroless/static
COPY wishbox /usr/local/bin/wishbox
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build .

FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/wishbox ./
ENTRYPOINT [ "/app/wishbox" ]
ENTRYPOINT [ "/usr/local/bin/wishbox" ]
11 changes: 11 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.17 as builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build .

FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/wishbox ./
ENTRYPOINT [ "/app/wishbox" ]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Wishbox
[![docker](https://github.com/jon4hz/wishbox/actions/workflows/docker.yml/badge.svg)](https://github.com/jon4hz/wishbox/actions/workflows/docker.yml)
[![goreleaser](https://github.com/jon4hz/wishbox/actions/workflows/goreleaser.yml/badge.svg)](https://github.com/jon4hz/wishbox/actions/workflows/goreleaser.yml)
[![lint](https://github.com/jon4hz/wishbox/actions/workflows/lint.yml/badge.svg)](https://github.com/jon4hz/wishbox/actions/workflows/lint.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/jon4hz/wishbox)](https://goreportcard.com/report/github.com/jon4hz/wishbox)


Generate a wishlist directory based on your [netbox](https://github.com/netbox-community/netbox) inventory.

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
wishbox:
build:
context: .
dockerfile: Dockerfile
dockerfile: Dockerfile.dev
volumes:
- ./config.yml:/app/config.yml
- .wishlist:/app/.wishlist
Expand Down

0 comments on commit 83d2d7d

Please sign in to comment.