From 7cf1729d083fc55df7ff39f81dee7e0f5f34a337 Mon Sep 17 00:00:00 2001 From: andrei-mihnea-cerbu Date: Sun, 21 Apr 2024 18:50:19 +0300 Subject: [PATCH] version 2.0 --- CEO/.idea/.name | 1 + .../inspectionProfiles/Project_Default.xml | 7 ++++++ CEO/Dockerfile | 23 +++++++++++++++++++ UC/Dockerfile | 23 +++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 CEO/.idea/.name create mode 100644 CEO/.idea/inspectionProfiles/Project_Default.xml create mode 100644 CEO/Dockerfile create mode 100644 UC/Dockerfile diff --git a/CEO/.idea/.name b/CEO/.idea/.name new file mode 100644 index 0000000..1c746d5 --- /dev/null +++ b/CEO/.idea/.name @@ -0,0 +1 @@ +external_endpoints.js \ No newline at end of file diff --git a/CEO/.idea/inspectionProfiles/Project_Default.xml b/CEO/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..80292f2 --- /dev/null +++ b/CEO/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/CEO/Dockerfile b/CEO/Dockerfile new file mode 100644 index 0000000..0221513 --- /dev/null +++ b/CEO/Dockerfile @@ -0,0 +1,23 @@ +# Use the latest official Node runtime as a parent image +FROM node:latest + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json (if available) +COPY package*.json ./ + +# Install any needed packages specified in package.json +RUN npm install + +# Bundle app source inside Docker image +COPY . . + +# Make ports 80, 3000, and 5000 available to the world outside this container +EXPOSE 80 3000 5000 + +# Define environment variable +ENV NODE_ENV=production + +# Run the app when the container launches +CMD ["npm", "start"] diff --git a/UC/Dockerfile b/UC/Dockerfile new file mode 100644 index 0000000..0221513 --- /dev/null +++ b/UC/Dockerfile @@ -0,0 +1,23 @@ +# Use the latest official Node runtime as a parent image +FROM node:latest + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json (if available) +COPY package*.json ./ + +# Install any needed packages specified in package.json +RUN npm install + +# Bundle app source inside Docker image +COPY . . + +# Make ports 80, 3000, and 5000 available to the world outside this container +EXPOSE 80 3000 5000 + +# Define environment variable +ENV NODE_ENV=production + +# Run the app when the container launches +CMD ["npm", "start"]