cadl/docker
Timothee Guerin 53856c80f6
Fix dockerfile and docs (#1746)
2023-03-28 20:31:23 +00:00
..
Dockerfile Fix dockerfile and docs (#1746) 2023-03-28 20:31:23 +00:00
readme.md Fix dockerfile and docs (#1746) 2023-03-28 20:31:23 +00:00

readme.md

Use typespec via docker

Image: azsdkengsys.azurecr.io/typespec

Tags:

  • Lastest from master: alpine, latest

Usage

docker run \
  -v "${pwd}:/wd" --workdir="/wd" \
  -t azsdkengsys.azurecr.io/typespec \
  # ... typespec args ...

For usage in powershell replace \ with `

Install dependencies

docker run -v "${pwd}:/wd" --workdir="/wd"  -t azsdkengsys.azurecr.io/typespec install

Compile

docker run -v "${pwd}:/wd" --workdir="/wd"  -t azsdkengsys.azurecr.io/typespec compile .

Init a new project

docker run -v "${pwd}:/wd" --workdir="/wd"  -t azsdkengsys.azurecr.io/typespec init