Dockerfile: downgrade npm to fix build

pull/14/head
leonnicolas 4 years ago
parent 1b9030c85e
commit 14d9a817a2
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -1,17 +1,20 @@
FROM node AS builder FROM node:14.14.0-alpine3.10 AS builder
RUN npm --version
WORKDIR / WORKDIR /
COPY ./src /src COPY ./src /src
COPY ./package*.json ./ COPY ./package*.json ./
COPY ./gulpfile.js ./ COPY ./gulpfile.js ./
COPY ./tsconfig.json ./ COPY ./tsconfig.json ./
COPY ./.eslintrc.json ./
RUN npm install RUN npm install
RUN npm install -g gulp
RUN npm install gulp RUN npm install gulp
RUN npx eslint --config .eslintrc.json
RUN npx gulp
RUN gulp
FROM node FROM node:14.14.0-alpine3.10
COPY --from=builder ./dist ./dist COPY --from=builder ./dist ./dist
COPY --from=builder ./package*.json ./ COPY --from=builder ./package*.json ./
RUN npm install --production RUN npm install --production

6
package-lock.json generated

@ -5390,9 +5390,9 @@
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="
}, },
"object-path": { "object-path": {
"version": "0.11.4", "version": "0.11.5",
"resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.4.tgz", "resolved": "https://registry.npmjs.org/object-path/-/object-path-0.11.5.tgz",
"integrity": "sha1-NwrnUvvzfePqcKhhwju6iRVpGUk=" "integrity": "sha512-jgSbThcoR/s+XumvGMTMf81QVBmah+/Q7K7YduKeKVWL7N111unR2d6pZZarSk6kY/caeNxUDyxOvMWyzoU2eg=="
}, },
"object-visit": { "object-visit": {
"version": "1.0.1", "version": "1.0.1",

Loading…
Cancel
Save