From 1c7c3a477796afa3add50eb23c9dc6caf51ae5cd Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs <93375423+prafull-opensignlabs@users.noreply.github.com> Date: Thu, 22 Feb 2024 18:44:07 +0530 Subject: [PATCH 1/3] Create Dockerhubfile --- apps/OpenSignServer/Dockerhubfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apps/OpenSignServer/Dockerhubfile diff --git a/apps/OpenSignServer/Dockerhubfile b/apps/OpenSignServer/Dockerhubfile new file mode 100644 index 000000000..9e2bfbe6c --- /dev/null +++ b/apps/OpenSignServer/Dockerhubfile @@ -0,0 +1,27 @@ +# Use an official Node runtime as the base image +FROM node:16 + +# Set the working directory inside the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json first to leverage Docker cache +COPY ./package*.json ./ + +# Install application dependencies +RUN npm install + +# If you have native dependencies, you'll need extra tools. Uncomment the following line if needed. +# RUN apk add --no-cache make gcc g++ python3 + +# Copy the current directory contents into the container +COPY ./ . + +# Make port 8080 available to the world outside this container +EXPOSE 8080 + +# Define environment variables if needed +# ENV NODE_ENV production +# ENV DATABASE_URL mongodb://db:27017 + +# Run the application +CMD ["npm", "start"] From addc7622ab8c8e1de752fae84bb2faf1699a797c Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs <93375423+prafull-opensignlabs@users.noreply.github.com> Date: Thu, 22 Feb 2024 18:46:43 +0530 Subject: [PATCH 2/3] Create Dockerhubfile --- apps/OpenSign/Dockerhubfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apps/OpenSign/Dockerhubfile diff --git a/apps/OpenSign/Dockerhubfile b/apps/OpenSign/Dockerhubfile new file mode 100644 index 000000000..48a6d8145 --- /dev/null +++ b/apps/OpenSign/Dockerhubfile @@ -0,0 +1,24 @@ +# Use an official Node runtime as the base image +FROM node:16 + +# Set the working directory inside the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json first to leverage Docker cache +COPY apps/OpenSign/package*.json ./ + +# Install application dependencies +RUN npm install + +# Copy the current directory contents into the container +COPY apps/OpenSign/ . +COPY apps/OpenSign/.husky . + +# Make port 3000 available to the world outside this container +EXPOSE 3000 + +# Define environment variables if needed +# ENV NODE_ENV production + +# Run the application +CMD ["npm", "start"] From 5ec9d593822f745b28f4ed9f9fb033d3b6e67629 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs <93375423+prafull-opensignlabs@users.noreply.github.com> Date: Thu, 22 Feb 2024 18:48:36 +0530 Subject: [PATCH 3/3] Update Dockerhubfile --- apps/OpenSignServer/Dockerhubfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/OpenSignServer/Dockerhubfile b/apps/OpenSignServer/Dockerhubfile index 9e2bfbe6c..4f949aa1d 100644 --- a/apps/OpenSignServer/Dockerhubfile +++ b/apps/OpenSignServer/Dockerhubfile @@ -5,7 +5,7 @@ FROM node:16 WORKDIR /usr/src/app # Copy package.json and package-lock.json first to leverage Docker cache -COPY ./package*.json ./ +COPY apps/OpenSignServer/package*.json ./ # Install application dependencies RUN npm install @@ -14,7 +14,7 @@ RUN npm install # RUN apk add --no-cache make gcc g++ python3 # Copy the current directory contents into the container -COPY ./ . +COPY apps/OpenSignServer/ . # Make port 8080 available to the world outside this container EXPOSE 8080