[call-me] - improve dockerfile 4 production

This commit is contained in:
Miroslav Pejic
2025-07-03 02:20:29 +02:00
parent edbb4656c2
commit 844f0bfef1
4 changed files with 1898 additions and 7 deletions
-1
View File
@@ -5,7 +5,6 @@
node_modules
npm-debug.log
package-lock.json
#personal
docker-compose.yml
+6 -3
View File
@@ -4,12 +4,15 @@ FROM node:22-alpine
# Set working directory
WORKDIR /src
# Copy package.json and .env dependencies
COPY package.json .
# Set environment variables
ENV NODE_ENV="production"
# Copy package*.json and .env dependencies
COPY package*.json ./
COPY .env.template ./.env
# Install necessary system packages and dependencies
RUN npm install \
RUN npm ci --only=production --silent \
&& npm cache clean --force \
&& rm -rf /tmp/* /var/tmp/* /usr/share/doc/*
+1889
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "call-me",
"version": "1.0.87",
"version": "1.0.88",
"description": "Your Go-To for Instant Video Calls",
"author": "Miroslav Pejic - miroslav.pejic.85@gmail.com",
"license": "AGPLv3",
@@ -23,7 +23,7 @@
"axios": "^1.10.0",
"colors": "^1.4.0",
"cors": "^2.8.5",
"dotenv": "^16.5.0",
"dotenv": "^17.0.1",
"express": "^5.1.0",
"helmet": "^8.1.0",
"httpolyglot": "0.1.2",
@@ -33,6 +33,6 @@
},
"devDependencies": {
"nodemon": "^3.1.10",
"prettier": "3.6.0"
"prettier": "3.6.2"
}
}