Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multi-arch docker builds #2

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ aws/
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
vendor/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN go mod download
COPY cmd cmd
COPY pkg pkg

RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /mrfparse
RUN go build -ldflags="-w -s" -o /mrfparse

FROM debian:bullseye-slim as runtime

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all: build
## Build:
build: ## Build your project
mkdir -p ./out/bin
GO111MODULE=on GOOS=linux GOARCH=amd64 $(GOCMD) build -o ./out/bin/$(BINARY_NAME)
GO111MODULE=on $(GOCMD) build -o ./out/bin/$(BINARY_NAME)

clean: ## Remove build related file
rm -f $(BINARY_NAME)
Expand Down