mirror of
https://github.com/ION606/web-to-fish.git
synced 2026-05-14 18:36:53 +00:00
removed dockerfiles for permission reasons
This commit is contained in:
-16
@@ -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", "."]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
services:
|
|
||||||
app:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
ports:
|
|
||||||
- "5164:3000"
|
|
||||||
volumes:
|
|
||||||
- ./secrets:/app/secrets
|
|
||||||
environment:
|
|
||||||
PORT: 3000
|
|
||||||
NODE_ENV: production
|
|
||||||
@@ -7,7 +7,7 @@ import { spawn } from 'node-pty';
|
|||||||
import json from './secrets/config.json' with { type: 'json' };
|
import json from './secrets/config.json' with { type: 'json' };
|
||||||
|
|
||||||
const __dirname = path.dirname(fileURLToPath(import.meta.url)),
|
const __dirname = path.dirname(fileURLToPath(import.meta.url)),
|
||||||
PORT = process.env.PORT || 3000,
|
PORT = process.env.PORT || 5164,
|
||||||
app = express();
|
app = express();
|
||||||
|
|
||||||
expressWs(app); // enable websockets for the app
|
expressWs(app); // enable websockets for the app
|
||||||
|
|||||||
Reference in New Issue
Block a user