forked from pmq20/node-packer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (14 loc) · 872 Bytes
/
Copy pathDockerfile
File metadata and controls
15 lines (14 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM ubuntu
RUN apt update -y && DEBIAN_FRONTEND=noninteractive apt install -y wget squashfs-tools gcc g++ clang python2.7 make gzip sudo git npm
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
RUN apt install -y nodejs
RUN curl -fsSL https://deb.nodesource.com/test | bash -
RUN wget https://gw.alipayobjects.com/os/enclose-prod/b6aa41a6-f6b5-4542-b777-06e4bc292c5e/nodec-v1.5.0-linux-x64.gz
#RUN wget https://github.com/pmq20/node-packer/releases/download/linux-x64/pre-release-nodec-v140800.121803-linux-x64
RUN gunzip nodec-v1.5.0-linux-x64.gz
RUN chmod a+x nodec-v1.5.0-linux-x64
RUN echo '{ "name": "my-awesome-package", "version": "1.0.0"}' > /bin/package.json
RUN ln -s /usr/bin/python2.7 /usr/bin/python
#RUN chmod a+x pre-release-nodec-v140800.121803-linux-x64
#CMD /pre-release-nodec-v140800.121803-linux-x64
#CMD /nodec-v1.5.0-linux-x64