From 4ed6d782126ee17f8b415abd9e948af4de3d6e75 Mon Sep 17 00:00:00 2001 From: sij Date: Tue, 5 Nov 2024 00:45:53 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e62dcd2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM node:latest + +# Set working directory +WORKDIR /app + +# Copy package files first to leverage Docker cache +COPY package.json yarn.lock ./ + +# Install dependencies +RUN yarn install + +# Copy the rest of the application +COPY . . + +# Expose port 5000 +EXPOSE 5000 + +# Start the application +CMD ["yarn", "start"] \ No newline at end of file