FROM node:16
# Create app directory
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
COPY . .
EXPOSE 3001
CMD [ "node", "index" ]
I'm working on the following
Dockerfile
:and
docker-compose.yaml
:when I uploaded a few test
.epub
files, I'm always getting the following errors in the docker compose logs:Any advice as to what may be causing this? Once I have this resolved, I can submit a PR with the
Dockerfile
anddocker-compose.yaml
file.