Add v1 12d20 2123
This commit is contained in:
parent
0cbc1af836
commit
b47c7b1c67
@ -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
|
||||||
|
|||||||
@ -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 . .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user