Skip to content

Commit 7dff768

Browse files
committed
update dockerfile
1 parent 3ab78f5 commit 7dff768

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

.dockerignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
.DS_Store
2-
node_modules/
3-
dist/

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ COPY package.json .
1919
COPY package-lock.json .
2020
RUN npm install
2121

22-
COPY . .
23-
RUN npm run clean
24-
RUN npm run build
22+
COPY dist/ ./dist/
2523

2624
CMD ["npm", "run", "start"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The best reason to use this method is that we can use it on any programming lang
99
### Start server with Docker (recommended)
1010

1111
```bash
12-
docker run -p 3000:3000 iamdual/html2pdf
12+
docker run -td -p 3000:3000 iamdual/html2pdf
1313
```
1414

1515
### Start server with source

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iamdual/html2pdf",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "HTML to PDF converter",
55
"scripts": {
66
"clean": "rimraf ./dist",

0 commit comments

Comments
 (0)