File tree 2 files changed +15
-13
lines changed
2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:alpine
2
- WORKDIR /usr/src/app
3
- COPY . /usr/src/app
4
- RUN npm install && npm run release
5
- WORKDIR /src
6
- ENTRYPOINT [ "node" , "/usr/src/app /bin/index.js" ]
2
+ WORKDIR /usr/src/openapi
3
+ COPY . /usr/src/openapi
4
+ RUN npm install
5
+ RUN npm run release
6
+ ENTRYPOINT [ "node" , "/usr/src/openapi /bin/index.js" ]
7
7
CMD "--help"
Original file line number Diff line number Diff line change 3
3
[ ![ NPM] [ npm-image ]] [ npm-url ]
4
4
[ ![ License] [ license-image ]] [ license-url ]
5
5
[ ![ Coverage] [ coverage-image ]] [ coverage-url ]
6
+ [ ![ Coverage] [ coverage-image ]] [ coverage-url ]
6
7
[ ![ Downloads] [ downloads-image ]] [ downloads-url ]
7
8
[ ![ Build] [ build-image ]] [ build-url ]
8
9
@@ -58,17 +59,18 @@ $ openapi --help
58
59
59
60
## Docker usage
60
61
61
- * Help screen
62
+ To build the Docker container, execute the following command:
62
63
63
- ```
64
- docker run leeelenbaas/ openapi-typescript-codegen --help
65
- ```
64
+ ```
65
+ docker build . --tag openapi-typescript-codegen
66
+ ```
66
67
67
- * Generate client for ` sample.yaml ` in current folder to the ` client ` subfolder
68
+ After this is done, you can execute the CLI commands:
68
69
69
- ```
70
- docker run -v "$PWD:/src" leeelenbaas/openapi-typescript-codegen -i sample.yaml -o client
71
- ```
70
+ ```
71
+ docker run openapi-typescript-codegen --help
72
+ docker run openapi-typescript-codegen --input sample.yaml --output client
73
+ ```
72
74
73
75
Documentation
74
76
===
You can’t perform that action at this time.
0 commit comments