From f54ca7c136f90f98eb8081274a22b3dd4c9bb13c Mon Sep 17 00:00:00 2001 From: keerthik24 <159415360+keerthik24@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:38:32 +0530 Subject: [PATCH] Create Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f20fa7b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use an official Node.js runtime as the base image +FROM node:14 + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json to the working directory +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy the rest of your application code +COPY . . + +# Expose the port your app runs on +EXPOSE 3000 + +# Command to run your app using node +CMD ["node", "app.js"]