|
@ -1,10 +1,17 @@ |
|
|
FROM node:8.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 |
|
|
COPY . /app |
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
|
|
|
# Install Node dependencies |
|
|
RUN npm install |
|
|
RUN npm install |
|
|
|
|
|
|
|
|
|
|
|
# Use this volume for SQLite database |
|
|
VOLUME ["/var/sqlite"] |
|
|
VOLUME ["/var/sqlite"] |
|
|
|
|
|
|
|
|
CMD node /app/src/server.js |
|
|
|
|
|
|
|
|
ENTRYPOINT bash docker-entrypoint.sh |