From a725815b7b18256aabecea3b1ade31a07903c0bc Mon Sep 17 00:00:00 2001 From: Developer 1 Date: Fri, 2 Aug 2024 10:23:05 +0530 Subject: [PATCH] Added docker instructions --- Docker | 21 +++++++++++++++++++++ instructions | 0 2 files changed, 21 insertions(+) create mode 100644 Docker create mode 100644 instructions diff --git a/Docker b/Docker new file mode 100644 index 0000000..85fd58b --- /dev/null +++ b/Docker @@ -0,0 +1,21 @@ +# Use an official Node.js runtime as a parent image +FROM node:18 + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy the package.json and package-lock.json files to the container +COPY package*.json ./ + +# Install dependencies +RUN npm install --production + +# Copy the rest of the application code to the container +COPY . . + +# Expose the port the app runs on +EXPOSE 8080 + +# Define the command to run the app +CMD ["node", "app.js"] + diff --git a/instructions b/instructions new file mode 100644 index 0000000..e69de29