title: How can I run my node.js process with a permanent sqlite database?
body: <p>My Node.JS is supposed to store data with local SQLite databases. When I stop the container though, the SQLite data is lost, because it's being written on the docker path (which gets deleted when the container stops), how can I make it so the SQLite databases stay persistent?</p>
  
  <p>Here is my Dockerfile:</p>
  
  <pre><code>FROM node:10.15.3
  
  RUN mkdir -p /usr/src/test
  WORKDIR /usr/src/test
  
  COPY package.json /usr/src/test
  RUN npm install
  
  COPY . /usr/src/test
  
  CMD ["node","index.js"]
  </code></pre>
  
  <p>I read on another question that I should use <code>VOLUME []</code> but I don't know how I can use that.</p>