From 5cd110fd1a7315eb9d73f863920b6fc9f8b6e169 Mon Sep 17 00:00:00 2001 From: Ronniie Date: Thu, 2 Oct 2025 01:05:57 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4dc1ed7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Use the Node.js 20.13.1 base image +FROM node:20.18.1 + +# Set the working directory inside the container +WORKDIR /src + +# Copy package files and install dependencies +COPY package*.json ./ +RUN yarn install + +# Copy the entire application code +COPY . . + +# Build the application +RUN yarn build + +# Expose the port your app runs on +EXPOSE 3000 + +# Command to start the application +CMD ["yarn", "start"]