Skip to content

Commit

Permalink
Merge pull request #3 from waja/fix_dockerfile
Browse files Browse the repository at this point in the history
Dockerfile: Fixing COPY
  • Loading branch information
fbngrmr authored Jan 13, 2023
2 parents 6283b2a + d36d4b8 commit 69d48c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ FROM golang:1.19.4-alpine3.17 as build
WORKDIR /go/src/app

## Dependencies
COPY go.mod go.sum .
COPY go.mod go.sum ./
RUN go mod download

## Source code
COPY cmd cmd
COPY main.go .
COPY main.go ./

RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /go/bin/audiotheker -ldflags="-s -w" main.go

# Run Stage
FROM gcr.io/distroless/static-debian11:nonroot

COPY --from=build --chown=nonroot:nonroot /go/bin/audiotheker /
ENTRYPOINT ["/audiotheker"]
ENTRYPOINT ["/audiotheker"]

0 comments on commit 69d48c9

Please sign in to comment.