File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 11FROM node:14-alpine
2- FROM python:3.10 -alpine
2+ FROM python:2 -alpine
33
44RUN apk add --update npm
55
6- RUN mkdir /project
6+ RUN mkdir -p /project/bin
77
8- COPY package.json /project
9- COPY package-lock.json /project
8+ WORKDIR /project
9+
10+ COPY package.json /project/
11+ # COPY package-lock.json /project/
12+ COPY bin/preinstall.js /project/bin/preinstall.js
1013
1114COPY docker-entrypoint.sh /entrypoint.sh
1215
1316RUN chmod +x /entrypoint.sh
1417
1518RUN cd /project
16- RUN npm install
19+
20+ # There is a very stubborn npm package that keeps complaining even though
21+ # we try to set its environment config vars
22+ # RUN ln -s `which python` /usr/bin/python3
23+
24+ RUN npm install --package-lock-only &&\
25+ npm audit fix &&\
26+ npm install
1727
1828CMD /entrypoint.sh
You can’t perform that action at this time.
0 commit comments