Create Dockerhubfile

This commit is contained in:
prafull-opensignlabs
2024-02-22 18:46:43 +05:30
committed by GitHub
parent 1c7c3a4777
commit addc7622ab
+24
View File
@@ -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"]