# Use typespec via docker
Image: `azsdkengsys.azurecr.io/typespec`
Tags:
- Lastest from master: `alpine`, `latest`
## Usage
```bash
docker run \
-v "${pwd}:/wd" --workdir="/wd" \
-t azsdkengsys.azurecr.io/typespec \
# ... typespec args ...
```
**For usage in powershell replace `\` with `` ` ``**
### Install dependencies
```bash
docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec install
```
### Compile
```bash
docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec compile .
```
### Init a new project
```bash
docker run -v "${pwd}:/wd" --workdir="/wd" -t azsdkengsys.azurecr.io/typespec init
```microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
docker/readme.md
36lines · modepreview