diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..b512c09d4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/Dockerfile-arm32v7 b/Dockerfile-arm32v7 new file mode 100644 index 000000000..e9169511f --- /dev/null +++ b/Dockerfile-arm32v7 @@ -0,0 +1,16 @@ +FROM arm32v7/node + +# Copy files +ADD . /app +RUN cp /app/data/configuration.yaml /app + +# Create startup script. +RUN echo '#!/bin/bash\n\ +cp -n /app/configuration.yaml /app/data/configuration.yaml\n\ +npm start\n'\ +>> /app/start.sh +RUN chmod +x /app/start.sh + +WORKDIR /app +RUN npm install +ENTRYPOINT ["./start.sh"] \ No newline at end of file