diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index da935ad..0000000 --- a/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM node:latest - -WORKDIR /app - -COPY package*.json ./ - -RUN npm install - -COPY . . - -RUN mkdir -p /app/secrets && chmod -R 700 /app/secrets - -EXPOSE 5164 -ENV NODE_ENV=production - -CMD ["node", "."] diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index a80232f..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -services: - app: - build: - context: . - ports: - - "5164:3000" - volumes: - - ./secrets:/app/secrets - environment: - PORT: 3000 - NODE_ENV: production diff --git a/main.js b/main.js index 2bc424f..77daff6 100644 --- a/main.js +++ b/main.js @@ -7,7 +7,7 @@ import { spawn } from 'node-pty'; import json from './secrets/config.json' with { type: 'json' }; const __dirname = path.dirname(fileURLToPath(import.meta.url)), - PORT = process.env.PORT || 3000, + PORT = process.env.PORT || 5164, app = express(); expressWs(app); // enable websockets for the app