From 04cc19c79014812c6de9cee83394178b8dc26439 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Mon, 12 Aug 2024 12:35:42 +0530 Subject: [PATCH] feat: dockerize the hyperswitch-web --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..25ca7ffde --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM node:20-alpine + +# Set the working directory +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json to install dependencies +COPY package*.json ./ + +# Install dependencies +RUN npm install --ignore-scripts + +# Copy the rest of the application code +COPY . . + +# Build the rescript code +RUN npm run re:build + +# Build the application +RUN npm run build + +# Expose the port that the Webpack dev server will run on +EXPOSE 9050 + +# Start the Webpack dev server +CMD ["npm", "run", "start"]