What about now?
continuous-integration/drone/push Build is passing

This commit is contained in:
Stian Fredrik Aune
2020-12-05 15:29:57 +01:00
parent ba50b97066
commit e0da5a80df
3 changed files with 16 additions and 1 deletions
+2
View File
@@ -1 +1,3 @@
node_modules/
.drone.yml
stuff.db
+8 -1
View File
@@ -1,10 +1,17 @@
FROM node:8.17
# Install Bluetooth software
RUN apt-get update
RUN apt-get install -y bluez bluetooth
# Fetch data from repo
COPY . /app
WORKDIR /app
# Install Node dependencies
RUN npm install
# Use this volume for SQLite database
VOLUME ["/var/sqlite"]
CMD node /app/src/server.js
ENTRYPOINT bash docker-entrypoint.sh
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
service dbus start
bluetoothd &
node /app/src/server.js