diff --git a/.dockerignore b/.dockerignore index bf56190..e43b0f9 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1 @@ .DS_Store -node_modules/ -dist/ diff --git a/Dockerfile b/Dockerfile index 2a1df01..40f4343 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index e097228..14e5331 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 7ec619a..e777e44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@iamdual/html2pdf", - "version": "1.4.0", + "version": "1.5.0", "description": "HTML to PDF converter", "scripts": { "clean": "rimraf ./dist",