Skip to content

Commit

Permalink
Added docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeue committed Apr 3, 2022
1 parent ee0b334 commit 721444a
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
logs
npm-debug.log
states
StagTV
Tally2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Thumbs.db
*.app
*.exe
*.war
*.tar

# Large media files
*.mp4
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
7 changes: 0 additions & 7 deletions config.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 721444a

Please sign in to comment.