Update Dockerfile-web-ui-dev to include package.json in the COPY command

This commit is contained in:
2025-02-02 18:43:30 +07:00
parent 6d770469de
commit b1b7ef6a1d
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,8 @@ RUN apk update && apk add --no-cache git python3 make g++
RUN ln -sf /usr/bin/python3 /usr/bin/python RUN ln -sf /usr/bin/python3 /usr/bin/python
# Copy package.json and package-lock.json to the container # Copy package.json and package-lock.json to the container
COPY package*.json ./ # COPY package*.json ./
COPY /src/Managing.WebApp/package.json ./
# Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts # Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts
RUN npm install --legacy-peer-deps RUN npm install --legacy-peer-deps

View File

@@ -14,7 +14,8 @@ RUN apk update && apk add --no-cache git python3 make g++
RUN ln -sf /usr/bin/python3 /usr/bin/python RUN ln -sf /usr/bin/python3 /usr/bin/python
# Copy package.json and package-lock.json to the container # Copy package.json and package-lock.json to the container
COPY package*.json ./ # COPY package*.json ./
COPY /src/Managing.WebApp/package.json ./
# Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts # Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts
RUN npm install --legacy-peer-deps RUN npm install --legacy-peer-deps