From e7588f3243dddba56d938b93545c19095ae45077 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Mon, 12 Aug 2024 14:00:12 +0530 Subject: [PATCH] feat: dockerize the hyperswitch-web (#555) --- 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"]