Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdual committed Oct 22, 2024
1 parent 3ab78f5 commit 7dff768
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
.DS_Store
node_modules/
dist/
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ COPY package.json .
COPY package-lock.json .
RUN npm install

COPY . .
RUN npm run clean
RUN npm run build
COPY dist/ ./dist/

CMD ["npm", "run", "start"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The best reason to use this method is that we can use it on any programming lang
### Start server with Docker (recommended)

```bash
docker run -p 3000:3000 iamdual/html2pdf
docker run -td -p 3000:3000 iamdual/html2pdf
```

### Start server with source
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iamdual/html2pdf",
"version": "1.4.0",
"version": "1.5.0",
"description": "HTML to PDF converter",
"scripts": {
"clean": "rimraf ./dist",
Expand Down

0 comments on commit 7dff768

Please sign in to comment.