diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..93f1361 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e941d42 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:lts + +WORKDIR /usr/src/app + +COPY package*.json ./ + +RUN echo Installing dependencies \ + && apt-get update \ + && apt-get install sqlite3 -y \ + && npm ci + +COPY . . + +RUN npm run build + +EXPOSE 8080 + +CMD node main.js