Skip to content

Commit

Permalink
correct Dockerfile and goreleaser (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
nieomylnieja authored Jun 22, 2023
1 parent cdafc65 commit af3966e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
node_modules
bin/*
./oslo
dist

# OS specific
## macOS
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
builds:
- env:
- CGO_ENABLED=0
main: cmd
main: cmd/main.go
binary: bin/oslo
goos:
- linux
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.20 as build
WORKDIR /go/src/oslo
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build -o /go/bin/oslo
RUN CGO_ENABLED=0 go build -o /go/bin/oslo cmd/main.go


FROM gcr.io/distroless/static-debian11
Expand Down

0 comments on commit af3966e

Please sign in to comment.