mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
feat(games): add whopixels hosting at whopxl.mana.how
Dockerfile, docker-compose service (port 5100), Caddy and cloudflared routing for the WhoPixels game. PORT is now configurable via env var. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2eb280cc07
commit
d9ccb5e31b
59 changed files with 348 additions and 77 deletions
13
games/whopixels/Dockerfile
Normal file
13
games/whopixels/Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY games/whopixels/package.json ./
|
||||
RUN npm install --production
|
||||
|
||||
COPY games/whopixels/ ./
|
||||
|
||||
ENV PORT=5100
|
||||
EXPOSE 5100
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
|
|
@ -10,7 +10,7 @@ require('dotenv').config();
|
|||
const { parse } = require('querystring');
|
||||
|
||||
// Konfiguration
|
||||
const PORT = 3000;
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
// Azure OpenAI API Konfiguration aus Umgebungsvariablen
|
||||
const AZURE_OPENAI_API_KEY = process.env.AZURE_OPENAI_API_KEY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue