Update docker/haste/Dockerfile
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
98fb3a5588
commit
3f2167eb1e
|
@ -2,15 +2,15 @@ FROM node:18-alpine as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files first for better caching
|
# Copy package files first - this is the key fix
|
||||||
COPY package*.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
# Clean npm cache and install dependencies with specific flags to avoid errors
|
# Clean npm cache and install dependencies with specific flags to avoid errors
|
||||||
RUN npm cache clean --force && \
|
RUN npm cache clean --force && \
|
||||||
npm install --production --no-optional && \
|
npm install --production --no-optional && \
|
||||||
npm install mocha
|
npm install mocha
|
||||||
|
|
||||||
# Copy the rest of the application
|
# Copy the rest of the application AFTER installing dependencies
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Make sure app.sh is executable
|
# Make sure app.sh is executable
|
||||||
|
|
Loading…
Reference in New Issue