Skip to content

Commit 48dab6e

Browse files
committed
First step to dockerize build process, unfortunately with Python 2
1 parent aaf494b commit 48dab6e

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Dockerfile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
FROM node:14-alpine
2-
FROM python:3.10-alpine
2+
FROM python:2-alpine
33

44
RUN 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

1114
COPY docker-entrypoint.sh /entrypoint.sh
1215

1316
RUN chmod +x /entrypoint.sh
1417

1518
RUN 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

1828
CMD /entrypoint.sh

0 commit comments

Comments
 (0)