Skip to content

Commit 9e2c37d

Browse files
committedApr 11, 2023
Cleanup of Docker config
1 parent 7066737 commit 9e2c37d

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed
 

‎Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
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" ]
77
CMD "--help"

‎README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![NPM][npm-image]][npm-url]
44
[![License][license-image]][license-url]
55
[![Coverage][coverage-image]][coverage-url]
6+
[![Coverage][coverage-image]][coverage-url]
67
[![Downloads][downloads-image]][downloads-url]
78
[![Build][build-image]][build-url]
89

@@ -58,17 +59,18 @@ $ openapi --help
5859

5960
## Docker usage
6061

61-
* Help screen
62+
To build the Docker container, execute the following command:
6263

63-
```
64-
docker run leeelenbaas/openapi-typescript-codegen --help
65-
```
64+
```
65+
docker build . --tag openapi-typescript-codegen
66+
```
6667

67-
* Generate client for `sample.yaml` in current folder to the `client` subfolder
68+
After this is done, you can execute the CLI commands:
6869

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+
```
7274

7375
Documentation
7476
===

0 commit comments

Comments
 (0)
Please sign in to comment.