Skip to content

Commit

Permalink
Strip dwarf information from binaries in docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Aug 24, 2023
1 parent 726a894 commit fd06d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linux.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN go mod download -x
# Copy actual codebase, since we only have the go.mod and go.sum so far.
COPY . /app/
ENV CGO_ENABLED=0
RUN go build -tags timetzdata -o ./scribblers ./cmd/scribblers
RUN go build -ldflags "-w -s" -tags timetzdata -o ./scribblers ./cmd/scribblers

#
# Runner
Expand Down
2 changes: 1 addition & 1 deletion windows.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN go mod download -x
# Copy actual codebase, since we only have the go.mod and go.sum so far.
COPY . /app/
ENV CGO_ENABLED=0
RUN go build -tags timetzdata -o ./scribblers ./cmd/scribblers
RUN go build -ldflags "-w -s" -tags timetzdata -o ./scribblers ./cmd/scribblers

#
# Runner
Expand Down

0 comments on commit fd06d30

Please sign in to comment.