mirror of
https://github.com/MrUnknownDE/utools.git
synced 2026-04-21 06:53:44 +02:00
ai try oui install ^^
This commit is contained in:
@@ -9,12 +9,13 @@ WORKDIR /app
|
|||||||
RUN apk add --no-cache iputils-ping traceroute
|
RUN apk add --no-cache iputils-ping traceroute
|
||||||
|
|
||||||
# Copy package.json and package-lock.json (or yarn.lock)
|
# Copy package.json and package-lock.json (or yarn.lock)
|
||||||
|
# Ensure these files include 'oui' as a dependency before building!
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install app dependencies using npm ci for faster, reliable builds
|
# Install app dependencies using npm ci for faster, reliable builds
|
||||||
# --only=production installs only production dependencies
|
# --only=production installs only production dependencies (including 'oui')
|
||||||
RUN npm ci --only=production
|
RUN npm ci --only=production
|
||||||
RUN npm i oui
|
# REMOVED: RUN npm i oui (should be installed by npm ci now)
|
||||||
|
|
||||||
# Stage 2: Production Image
|
# Stage 2: Production Image
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user