2022-05-09 11:37:33 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
|
|
|
# This Dockerfile is intended for CI use only
|
|
|
|
# It assumes inso-linux-VERSION.tar.xz exists in /packages/insomnia-inso/artifacts
|
2023-10-25 13:44:27 +00:00
|
|
|
# You can run `npm run inso-package && npm run inso-package:artifacts` on a linux host OR
|
2022-05-09 11:37:33 +00:00
|
|
|
# `curl -LO "https://github.com/Kong/insomnia/releases/download/lib%40<version>/inso-linux-<version>.tar.xz"`
|
|
|
|
|
2023-10-25 13:44:27 +00:00
|
|
|
FROM docker.io/ubuntu:22.04 AS fetch
|
2022-05-09 11:37:33 +00:00
|
|
|
|
|
|
|
COPY ./artifacts/inso-linux-*.tar.xz /tmp/inso.tar.xz
|
2023-10-25 13:44:27 +00:00
|
|
|
RUN apt-get update && apt-get install -y xz-utils && rm -rf /var/lib/apt/lists/*
|
2022-05-09 11:37:33 +00:00
|
|
|
RUN tar -C /usr/bin -xvf /tmp/inso.tar.xz
|
|
|
|
|
2023-10-25 13:44:27 +00:00
|
|
|
FROM --platform=linux/amd64 docker.io/ubuntu:22.04
|
2022-05-09 11:37:33 +00:00
|
|
|
COPY --chmod=+x --from=fetch /usr/bin/inso /usr/bin/inso
|
2023-10-25 13:44:27 +00:00
|
|
|
RUN apt-get update && apt-get install -y libstdc++6 && rm -rf /var/lib/apt/lists/*
|
2022-05-09 11:37:33 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/inso"]
|