Surnet / docker-wkhtmltopdf

wkhtmltopdf for multiple base images
https://hub.docker.com/u/surnet/
MIT License
360 stars 65 forks source link

docker file nodejs #29

Closed dasuma closed 1 year ago

dasuma commented 1 year ago

hi, im create a docker file, but dont work


FROM surnet/alpine-node-wkhtmltopdf:16.13.1-0.12.6-small

WORKDIR /usr/src/app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

RUN npm install
# If you are building your code for production
# RUN npm ci --only=production

# Bundle app source
COPY . .

EXPOSE 8080
CMD [ "node", "index.js" ]

but i have this error

image
chdanielmueller commented 1 year ago

Hi @dasuma

Please try to install bash in the image and try again.

Thanks, Daniel