OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python
docker pull Azure/autorest:latest
docker run -d --name autorest --restart always azure/autorest:latest
podman run -d --name autorest --restart always azure/autorest:latest
skopeo inspect docker://docker.io/azure/autorest:latest
oras pull azure/autorest:latest
# internal users should provide MCR registry to build via 'docker build . --build-arg REGISTRY="mcr.microsoft.com/mirror/docker/library/"'
# public OSS users should simply leave this argument blank or ignore its presence entirely
ARG REGISTRY=""
FROM ${REGISTRY}ubuntu:22.04
RUN apt update && apt install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt install nodejs -y && rm -rf /var/lib/apt/lists/*
RUN npm install -g autorest
ENTRYPOINT [ "autorest" ]