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 "myproxy@garagescript.org"
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
8989 touch data.db
9090fi
9191
92- # pull node docker image
92+ # build docker iamge
9393if docker ps > /dev/null 2>&1 ; then
9494 docker pull node:alpine
95+ docker build -t myproxy-node ./scripts
9596else
9697 echo " WARNING: Couldn't run docker commands"
9798 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 (
3535 const workPath = path . resolve ( environment . WORKPATH , fullDomain )
3636 return docker
3737 . createContainer ( {
38- Image : 'node:alpine ' ,
38+ Image : 'myproxy- node:latest ' ,
3939 name : fullDomain ,
4040 User : 'node' ,
4141 ExposedPorts : {
You can’t perform that action at this time.
0 commit comments