Skip to content

Commit

Permalink
Add qemu step to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
freitas-renato committed Oct 27, 2023
1 parent 8b89da9 commit b40ceee
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
ARG TARGET_ARCH=amd64
ARG HOST_ARCH=amd64

FROM multiarch/qemu-user-static as bootstrap
ARG arch
ARG host
RUN echo "Switching from $host to $arch" && uname -a

# Based on from https://github.com/javabrett/mosh/blob/docker/dockerfiles/Dockerfile.alpine
FROM alpine:3.13
FROM multiarch/alpine:${TARGET_ARCH}-latest-stable as build
ARG TARGET_ARCH
RUN echo "Building for ${TARGET_ARCH}" && uname -a

RUN apk update && \
apk --no-cache add \
autoconf \
Expand Down

0 comments on commit b40ceee

Please sign in to comment.