Skip to content

Commit

Permalink
Add build arch
Browse files Browse the repository at this point in the history
  • Loading branch information
danquack committed Nov 24, 2023
1 parent c35a576 commit d35d09a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ WORKDIR /app
# Copy the source code to the container
COPY . .

ARG TARGETOS
ARG TARGETARCH

# Build the application
RUN make build
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build

# Use a lightweight Alpine image as the base image for the final container
FROM alpine:latest
Expand Down

0 comments on commit d35d09a

Please sign in to comment.