mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
19 lines
797 B
Docker
19 lines
797 B
Docker
# 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
|
|
# 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"`
|
|
|
|
FROM docker.io/ubuntu:22.04 AS fetch
|
|
|
|
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
|
|
|
|
FROM --platform=linux/amd64 docker.io/ubuntu:22.04
|
|
COPY --chmod=+x --from=fetch /usr/bin/inso /usr/bin/inso
|
|
RUN apt-get update && apt-get install -y libstdc++6 && rm -rf /var/lib/apt/lists/*
|
|
|
|
ENTRYPOINT ["/usr/bin/inso"]
|