From 20ed3d0928f8522ee551d1bc3aaca9fb1c3b49c9 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 23 Nov 2021 15:15:10 +0100 Subject: [PATCH] Docker setup --- .dockerignore | 3 +++ Dockerfile | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..30a9de6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +npm-debug.log +.* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..98ec383 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:16 + +# Create app directory +WORKDIR /usr/src/app + +# Install app dependencies +COPY package*.json ./ +RUN npm install + +# Bundle app source +COPY ./src/ . + +CMD ["npm", "run"] \ No newline at end of file