From 1cb7c2e62575798175509cc9f7720a4cb7fcbd97 Mon Sep 17 00:00:00 2001 From: Manank Patni Date: Tue, 6 Feb 2024 03:06:11 +0530 Subject: [PATCH] Add Dockerfile Signed-off-by: Manank Patni --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..56fcf78 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Use an official Node.js runtime as the base image +FROM node:16.16.0 + +# Set the working directory inside the container +WORKDIR /app + +COPY package*.json ./ tsconfig.json ./ yarn.lock / +COPY src ./src + +# Install any required dependencies (if you have any) +RUN yarn + +# Expose the port on which your Express server is listening +# Change 3000 to the port number your server is configured to listen on +EXPOSE 3001 + +# Define the command to run your Express server +CMD npm start