--- /dev/null
+FROM node:16-slim
+
+WORKDIR /app
+
+COPY package-lock.json .
+COPY package.json .
+RUN npm ci
+
+COPY . .
+
+ENTRYPOINT ["npm"]
+
+CMD ["start"]
--- /dev/null
+environment = development
+
+default: start
+
+start:
+ docker-compose up
+
+update-dependencies:
+ docker-compose run tomato-sauce install
const Util = require('../lib/util');
const config = {
- port: Getenv.int('TOMATO_SAUCE_PORT', 9999),
+ port: Getenv.int('TOMATO_SAUCE_PORT', 7777),
frequency: Getenv.int('TOMATO_SAUCE_FREQUENCY', 333),
modulation: Getenv.int('TOMATO_SAUCE_MODULATION_SPEED', 5)
};
--- /dev/null
+version: '3.8'
+
+services:
+ tomato-sauce:
+ build: .
+ command: run start
+ volumes:
+ - /app/node_modules
+ - .:/app
+ ports:
+ - "7777:7777"
"main": "lib/tomato_sauce.js",
"scripts": {
"document": "jsdoc2md -f 'lib/**/*.js' > doc/README.md",
- "lint": "eslint lib bin",
- "test": "I'm really really sorry! && exit 1",
+ "lint": "eslint .",
"start": "bin/tomato_sauce.js"
},
"repository": {