diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ba1f095 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +node_modules +logs +npm-debug.log +states +StagTV +Tally2 diff --git a/.gitignore b/.gitignore index 2f54999..e29b76e 100644 --- a/.gitignore +++ b/.gitignore @@ -51,6 +51,7 @@ Thumbs.db *.app *.exe *.war +*.tar # Large media files *.mp4 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0df81cd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:16 + +ENV NODE_ENV=production +# Create app directory +WORKDIR /usr/src/app + +# Install app dependencies +# A wildcard is used to ensure both package.json AND package-lock.json are copied +# where available (npm@5+) +COPY package*.json ./ + +RUN npm install --production +# If you are building your code for production +# RUN npm ci --only=production + +# Bundle app source +COPY . . + +EXPOSE 8080 +CMD [ "node", "server.js" ] diff --git a/config.json b/config.json deleted file mode 100755 index e9a5c22..0000000 --- a/config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "port":4445, - "host":"wss.chilton.tv/ws", - "loggingLevel":"W", - "createLogFile":true, - "otherServers":["wss.chilton.tv/ws"] -} diff --git a/package.json b/package.json index 72b98d7..ec0393a 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webtally-node", - "version": "1.0.0", + "version": "4.0.1", "description": "The server application for for Sam Chilton's WebTally system", "main": "server.js", "type": "module",