mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
14 lines
472 B
Plaintext
14 lines
472 B
Plaintext
ARG GOLANG_VERSION
|
|
ARG ALPINE_VERSION
|
|
|
|
FROM krakend/musl-cache as cache
|
|
|
|
FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION}
|
|
|
|
RUN apk --no-cache --virtual .build-deps add tar make gcc musl-dev binutils-gold
|
|
|
|
COPY --from=cache /aarch64-linux-musl-cross.tgz /aarch64-linux-musl-cross.tgz
|
|
RUN cd / && tar zxf aarch64-linux-musl-cross.tgz && rm -f aarch64-linux-musl-cross.tgz
|
|
|
|
ENV PATH="$PATH:/aarch64-linux-musl-cross/bin:/aarch64-linux-musl-cross/aarch64-linux-musl/bin"
|