insomnia/packages/insomnia-inso/Dockerfile
Filipe Freire e34e80e569
Publish Inso CLI docker images (INS-1238) (#4722)
* Add inso docker on build & publish workflows

* Pin alpine image to 3.15.4

* Rename kongcloud/insomnia-inso to kong/inso
2022-05-09 12:37:33 +01:00

18 lines
639 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: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/alpine:3.15.4 AS fetch
COPY ./artifacts/inso-linux-*.tar.xz /tmp/inso.tar.xz
RUN tar -C /usr/bin -xvf /tmp/inso.tar.xz
FROM docker.io/alpine:3.15.4 AS binary
COPY --chmod=+x --from=fetch /usr/bin/inso /usr/bin/inso
RUN apk add --no-cache gcompat libstdc++
ENTRYPOINT ["/usr/bin/inso"]