add docker image for nodejs

This commit is contained in:
Jeff Becker 2021-04-19 13:22:47 -04:00
parent e28e23171d
commit da985c4c44
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
FROM node:14.16.1
RUN /bin/bash -c 'echo "man-db man-db/auto-update boolean false" | debconf-set-selections'
RUN /bin/bash -c 'apt-get -o=Dpkg::Use-Pty=0 -q update && apt-get -o=Dpkg::Use-Pty=0 -q dist-upgrade -y && apt-get -o=Dpkg::Use-Pty=0 -q install -y eatmydata gdb cmake git ninja-build pkg-config ccache g++'

View File

@ -8,6 +8,6 @@ test "x$registry" != "x" || exit 1
for file in ${@:2} ; do
name="$(echo $file | cut -d'.' -f1)"
echo "rebuild $name"
docker build -f $file -t $registry/lokinet-ci-$name --pull --no-cache --quiet .
docker build -f $file -t $registry/lokinet-ci-$name .
docker push $registry/lokinet-ci-$name
done