From 51f96da1215edf72665193888f90577b2955c2dd Mon Sep 17 00:00:00 2001 From: Boris van Katwijk Date: Wed, 12 Sep 2018 23:10:10 +0200 Subject: [PATCH] Add development dockerfile based on alpine with python --- dev.Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dev.Dockerfile diff --git a/dev.Dockerfile b/dev.Dockerfile new file mode 100644 index 0000000000..2901159a58 --- /dev/null +++ b/dev.Dockerfile @@ -0,0 +1,20 @@ +FROM frolvlad/alpine-python2 + +RUN apk --update --no-cache add \ + g++ \ + make \ + nodejs \ + nodejs-npm \ + paxctl \ + && paxctl -cm $(which node) + +WORKDIR /usr/src/app + +COPY package.json . +RUN npm install + +COPY . . + +ENTRYPOINT ["./docker-entrypoint.sh"] + +CMD ["sh", "-c", "node index.js -h $DATABASE_HOST -p $DATABASE_PASSWORD -d $DATABASE_NAME -u $DATABASE_USER -n 80 -r 0.0.0.0"]