Skip to content

Commit 666636d

Browse files
Merge pull request #424 from OpenSignLabs/prafull-opensignlabs-patch-7
2 parents 5974515 + 5ec9d59 commit 666636d

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

apps/OpenSign/Dockerhubfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Use an official Node runtime as the base image
2+
FROM node:16
3+
4+
# Set the working directory inside the container
5+
WORKDIR /usr/src/app
6+
7+
# Copy package.json and package-lock.json first to leverage Docker cache
8+
COPY apps/OpenSign/package*.json ./
9+
10+
# Install application dependencies
11+
RUN npm install
12+
13+
# Copy the current directory contents into the container
14+
COPY apps/OpenSign/ .
15+
COPY apps/OpenSign/.husky .
16+
17+
# Make port 3000 available to the world outside this container
18+
EXPOSE 3000
19+
20+
# Define environment variables if needed
21+
# ENV NODE_ENV production
22+
23+
# Run the application
24+
CMD ["npm", "start"]

apps/OpenSignServer/Dockerhubfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use an official Node runtime as the base image
2+
FROM node:16
3+
4+
# Set the working directory inside the container
5+
WORKDIR /usr/src/app
6+
7+
# Copy package.json and package-lock.json first to leverage Docker cache
8+
COPY apps/OpenSignServer/package*.json ./
9+
10+
# Install application dependencies
11+
RUN npm install
12+
13+
# If you have native dependencies, you'll need extra tools. Uncomment the following line if needed.
14+
# RUN apk add --no-cache make gcc g++ python3
15+
16+
# Copy the current directory contents into the container
17+
COPY apps/OpenSignServer/ .
18+
19+
# Make port 8080 available to the world outside this container
20+
EXPOSE 8080
21+
22+
# Define environment variables if needed
23+
# ENV NODE_ENV production
24+
# ENV DATABASE_URL mongodb://db:27017
25+
26+
# Run the application
27+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)