Skip to content

Commit

Permalink
doco
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmittag committed Dec 4, 2023
1 parent 3ef689e commit 786664a
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
@@ -1,14 +1,17 @@
# This is multiarch including linux/amd64 and linux/arm64/v8, see: docker buildx imagetools inspect golang:1.21.4-alpine
FROM golang:1.21.4-alpine AS build

RUN apk update && apk upgrade && apk add --no-cache bash git

WORKDIR .
COPY . /proj/

# now build from source on each platform this Dockerfile gets executed
WORKDIR /proj
RUN CGO_ENABLED=0 go build github.com/simonmittag/j8a/cmd/j8a

#multistage build uses output from previous image
# multistage build uses output from previous image
# base image for distro is also multiarch, see: docker buildx imagetools inspect alpine
FROM alpine
COPY --from=build /proj/j8a /j8a

Expand Down

0 comments on commit 786664a

Please sign in to comment.