Add simple listing of sonos devices and basic Dockefile for running it

This commit is contained in:
simojenki
2021-01-29 12:34:02 +11:00
parent da61f079bc
commit 769a3e50d4
14 changed files with 935 additions and 45 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM node:14.15-alpine as build
WORKDIR /bonob
COPY package.json .
COPY yarn.lock .
COPY tsconfig.json .
COPY src .
RUN yarn install && \
yarn build
FROM node:14.15-alpine
EXPOSE 3000
WORKDIR /bonob
COPY package.json .
COPY yarn.lock .
COPY --from=build /bonob/build/* ./
COPY web web
RUN yarn install --prod
CMD ["node", "./app.js"]