Skip to content

Commit

Permalink
[SEC-3236]Build dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
roryscarson committed Sep 22, 2023
1 parent 55fd894 commit c6abd75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.17

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY cmd/. ./cmd
COPY pkg/. ./pkg
RUN ls -al
RUN CGO_ENABLED=0 GOOS=linux go build -o /allstar ./cmd/allstar

CMD ["/allstar"]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ossf/allstar

go 1.16
go 1.17

require (
github.com/Masterminds/semver/v3 v3.2.1
Expand Down

0 comments on commit c6abd75

Please sign in to comment.