Calling on Docker Experts:
Error: Cannot find module '/ivoteballot/node_modules/sqlite3/lib/binding/napi-v6-linux-musl-arm64/node_sqlite3.node'
I am eager to hear any suggestions and recommendations from experts in the field. Please share your insights and advice.
# Use an appropriate Node.js base image
RUN npm install -g nodemon
# Set the working directory in the container
COPY controllers /ivoteballot/
COPY models /ivoteballot/
# Copy the rest of your application files to the container
COPY . .
# Copy package.json and package-lock.json to the container
COPY package.json /ivoteballot/
COPY package-lock.json /ivoteballot/
# Install dependencies
RUN npm install
# Define the command to start your Node.js application
#CMD ["node", "index.js"]
CMD ["npm", "run", "dev"]
Here are additional photographs for your review: