ds300 / ds300/patch-package

No patch files found in docker

Open
#366 4 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.2k
Forks
325
PR merge metrics
No merged PRs in 30d

Description

The command runs but says no patch file found.
Any workround ?

**Dockerfile**

```
# build stage
FROM node:lts-alpine as build-stage

WORKDIR /app
COPY package*.json patches ./
RUN npm install --unsafe-perm
COPY . .
RUN npm run build

# production stage
FROM nginx:stable-alpine as production-stage
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build-stage /app/dist /usr/share/nginx/html
# EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
```

**Docker compose logs**

```
Step 1/10 : FROM node:lts-alpine as build-stage
---> 710c8aa630d5
Step 2/10 : WORKDIR /app
---> Running in fb0b317f7086
---> 96e6a3fa9102
Step 3/10 : COPY package*.json patches ./
---> 6ec01f4331d9
Step 4/10 : RUN npm install --unsafe-perm
---> Running in 4388874e0da1
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

> haezoom_vue@0.0.0 postinstall
> patch-package

patch-package 6.4.7
Applying patches...
No patch files found
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.