File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ FROM node:alpine
2
+
3
+ RUN apk add git --no-cache
4
+ RUN git config --global user.email
"[email protected] "
5
+ RUN git config --global user.name "myproxy"
6
+
7
+ ENTRYPOINT ["docker-entrypoint.sh" ]
8
+ CMD ["node" ]
Original file line number Diff line number Diff line change @@ -89,9 +89,10 @@ if [ ! -f "./data.db" ] ; then
89
89
touch data.db
90
90
fi
91
91
92
- # pull node docker image
92
+ # build docker iamge
93
93
if docker ps > /dev/null 2>&1 ; then
94
94
docker pull node:alpine
95
+ docker build -t myproxy-node ./scripts
95
96
else
96
97
echo " WARNING: Couldn't run docker commands"
97
98
echo " WARNING: Make sure your user has the right permissions"
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const createContainer = async (
35
35
const workPath = path . resolve ( environment . WORKPATH , fullDomain )
36
36
return docker
37
37
. createContainer ( {
38
- Image : 'node:alpine ' ,
38
+ Image : 'myproxy- node:latest ' ,
39
39
name : fullDomain ,
40
40
User : 'node' ,
41
41
ExposedPorts : {
You can’t perform that action at this time.
0 commit comments