diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..19bfecc --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/backend/package.json b/backend/package.json index 560a44d..934b167 100644 --- a/backend/package.json +++ b/backend/package.json @@ -16,7 +16,7 @@ "author": "Siddharth S", "license": "MIT", "dependencies": { - "@node-minify/core": "^5.3.0", + "@node-minify/core": "^6.2.0", "@node-minify/cssnano": "^5.3.0", "compression": "^1.7.4", "concurrently": "^5.2.0", diff --git a/client/package.json b/client/package.json index c5fdd1a..f239477 100644 --- a/client/package.json +++ b/client/package.json @@ -13,7 +13,7 @@ "react": "^16.13.1", "react-bootstrap": "^1.0.1", "react-dom": "^16.13.1", - "react-scripts": "^3.4.4", + "react-scripts": "^4.0.3", "recoil": "^0.0.8", "styled-components": "^5.1.1" }, diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..483422d --- /dev/null +++ b/dockerfile @@ -0,0 +1,21 @@ +FROM node:13 +// Node version should be lessar than 14.15.x . +RUN mkdir -p /app/backend + +WORKDIR /usr/app/backend + +COPY package*.json ./ + +#backend/* . / + +# + +RUN npm install + +COPY . . + +USER node + +EXPOSE 3000 + +CMD ["npm","start"]