Add v1 12d20 2123

This commit is contained in:
yznahmad 2025-07-03 01:49:30 +03:00
parent 0cbc1af836
commit b47c7b1c67
2 changed files with 3 additions and 3 deletions

View File

@ -26,8 +26,8 @@ services:
# Web Application (Next.js) # Web Application (Next.js)
webapp: webapp:
build: build:
context: . context: ./webapp
dockerfile: webapp/Dockerfile dockerfile: Dockerfile
target: runner target: runner
container_name: infinity-webapp container_name: infinity-webapp
restart: unless-stopped restart: unless-stopped

View File

@ -5,7 +5,7 @@ WORKDIR /app
# Install dependencies # Install dependencies
COPY package.json package-lock.json* ./ COPY package.json package-lock.json* ./
RUN if [ -f package-lock.json ]; then npm ci; \ RUN if [ -f package-lock.json ]; then npm ci; \
else echo "Lockfile not found." && exit 1; fi else echo "package-lock.json not found, running npm install" && npm install --production; fi
# Copy source code # Copy source code
COPY . . COPY . .