Update Dockerfile to install all dependencies and modify .dockerignore to exclude log files.
This commit is contained in:
@ -43,3 +43,5 @@ scripts
|
|||||||
drizzle
|
drizzle
|
||||||
oliver-super-admin.json
|
oliver-super-admin.json
|
||||||
setup-oliver-admin.html
|
setup-oliver-admin.html
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
@ -6,8 +6,8 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install ALL dependencies (including dev dependencies needed for build)
|
||||||
RUN npm ci --only=production
|
RUN npm ci
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
Reference in New Issue
Block a user