Skip to content

Commit

Permalink
Merge pull request #110 from flaviodsr/docker_arg02
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviodsr committed Sep 14, 2021
2 parents 4fb4a0d + 90abfdb commit 73a4618
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Build the fuseml_core binary
FROM golang:1.16 as builder

ARG LDFLAGS="-w -s"

WORKDIR /workspace

# Copy the Go Modules manifests
Expand All @@ -18,6 +16,7 @@ COPY cmd/ cmd/
COPY pkg/ pkg/

# Build
ARG LDFLAGS="-w -s"
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -ldflags "$LDFLAGS" -o fuseml_core ./cmd/fuseml_core

# Use docker scratch as minimal base image to package FuseML binaries
Expand Down

0 comments on commit 73a4618

Please sign in to comment.