fix: inso cli via docker issue on Mac M1 [INS-3245] (#6717)

This commit is contained in:
Filipe Freire 2023-10-25 14:44:27 +01:00 committed by GitHub
parent 4c336d1e49
commit ec32ae998a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,16 +2,17 @@
# This Dockerfile is intended for CI use only # This Dockerfile is intended for CI use only
# It assumes inso-linux-VERSION.tar.xz exists in /packages/insomnia-inso/artifacts # It assumes inso-linux-VERSION.tar.xz exists in /packages/insomnia-inso/artifacts
# You can run `npm run inso-package:artifacts` on a linux host OR # You can run `npm run inso-package && npm run inso-package:artifacts` on a linux host OR
# `curl -LO "https://github.com/Kong/insomnia/releases/download/lib%40<version>/inso-linux-<version>.tar.xz"` # `curl -LO "https://github.com/Kong/insomnia/releases/download/lib%40<version>/inso-linux-<version>.tar.xz"`
FROM docker.io/alpine:3.15.4 AS fetch FROM docker.io/ubuntu:22.04 AS fetch
COPY ./artifacts/inso-linux-*.tar.xz /tmp/inso.tar.xz COPY ./artifacts/inso-linux-*.tar.xz /tmp/inso.tar.xz
RUN apt-get update && apt-get install -y xz-utils && rm -rf /var/lib/apt/lists/*
RUN tar -C /usr/bin -xvf /tmp/inso.tar.xz RUN tar -C /usr/bin -xvf /tmp/inso.tar.xz
FROM docker.io/alpine:3.15.4 AS binary FROM --platform=linux/amd64 docker.io/ubuntu:22.04
COPY --chmod=+x --from=fetch /usr/bin/inso /usr/bin/inso COPY --chmod=+x --from=fetch /usr/bin/inso /usr/bin/inso
RUN apk add --no-cache gcompat libstdc++ RUN apt-get update && apt-get install -y libstdc++6 && rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/bin/inso"] ENTRYPOINT ["/usr/bin/inso"]