From 85441371613e7217a916df1efb81d134fc2c8770 Mon Sep 17 00:00:00 2001 From: surajkumarsingh03 Date: Sun, 8 Dec 2024 19:44:00 +0530 Subject: [PATCH] docker changes --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9561bb3..f469de4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,16 @@ FROM node:18-alpine + +# Set the working directory WORKDIR /app + +# Copy application code to the container COPY . . + +# Install dependencies RUN yarn install --production + +# Expose the port the app runs on +EXPOSE 3000 + +# Command to run the application CMD ["node", "src/index.js"] -EXPOSE 3000