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"]