mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-07-30 09:24:33 -04:00
🐋 upd. dockerfile
* upd. jsoneditor build * upd. readme
This commit is contained in:
35
Dockerfile
35
Dockerfile
@@ -1,23 +1,28 @@
|
||||
FROM node:20 as builder
|
||||
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build && rm -rf node_modules
|
||||
# syntax = docker/dockerfile:1
|
||||
|
||||
##########
|
||||
|
||||
FROM node:20
|
||||
LABEL fly_launch_runtime="nodejs"
|
||||
FROM node:20 as base
|
||||
LABEL fly_launch_runtime="Node.js"
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV production
|
||||
ENV NODE_ENV="production"
|
||||
|
||||
##########
|
||||
FROM base as builder
|
||||
|
||||
COPY --link package.json package-lock.json ./
|
||||
RUN npm ci --include=dev
|
||||
|
||||
COPY --link . .
|
||||
RUN npm run build
|
||||
|
||||
RUN rm -rf node_modules
|
||||
|
||||
##########
|
||||
FROM base
|
||||
|
||||
COPY --from=builder /app /app
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
|
||||
EXPOSE 8080
|
||||
CMD [ "npm", "run", "start" ]
|
||||
|
||||
@@ -6,7 +6,7 @@ The main goals of this repo:
|
||||
1. create a (simple, but capable) service/bot to monitor game servers
|
||||
1. get gamedig & steam api server info (_eg.: server name, map, players, etc._)
|
||||
1. relay real time server information to various channels via APIs (_eg.: discord, telegram, slack etc._)
|
||||
1. should be able to host on a free service (_target atm. is fly.io (node.js 18)_)
|
||||
1. should be able to host on a free service (_target atm. is fly.io (node.js 20)_)
|
||||
1. graciously add more features based on community feedback via [discord <img src="https://cdn.discordapp.com/icons/935911764023996527/1b791c9533f24a6bc23dbf5b2c134436.png?size=20" width="20" align="absmiddle" title="ACME Corp." alt="">](https://discord.gg/4tsbftsGJz) and [github :octocat:](https://github.com/a-sync/game-server-watcher/discussions/new?category=ideas-requests)
|
||||
|
||||
# Screenshots
|
||||
@@ -111,7 +111,8 @@ _The bot has no cleanup functionality, leftover messages must be removed manuall
|
||||
|
||||
# Deployment
|
||||
Check the wiki page for detailed instructions on [how to setup a self deploying free cloud instance at fly.io](https://github.com/a-sync/game-server-watcher/wiki/Free-hosting-via-fly.io).
|
||||
The latest Pterodactyl egg can always be found here: [🥚](https://raw.githubusercontent.com/a-sync/game-server-watcher/master/egg.json)
|
||||
The latest Pterodactyl egg can always be found here: [🥚](https://raw.githubusercontent.com/a-sync/game-server-watcher/master/egg.json)
|
||||
Pre-built container images can be downloaded from the github container registry: `docker pull ghcr.io/a-sync/game-server-watcher`
|
||||
<p align="center">
|
||||
<!--<a href="https://app.koyeb.com/deploy?type=git&repository=github.com/a-sync/game-server-watcher&branch=master&name=gsw"><img src="https://www.koyeb.com/static/images/deploy/button.svg" height="32" alt="Deploy to Koyeb"></a>//TODO: support ephemeral storage-->
|
||||
<!--<a href="https://heroku.com/deploy?template=https%3A%2F%2Fgithub.com%2Fa-sync%2Fgame-server-watcher"><img src="https://www.herokucdn.com/deploy/button.svg" height="32" alt="Deploy to Heroku"></a>//TODO: support ephemeral storage-->
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
"variables": {
|
||||
"sku": "Basic",
|
||||
"skuCode": "B1",
|
||||
"linuxFxVersion": "NODE|16-lts",
|
||||
"linuxFxVersion": "NODE|18-lts",
|
||||
"hostingPlanName": "[format('AppServicePlan-{0}', parameters('siteName'))]"
|
||||
},
|
||||
"resources": [
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "game-server-watcher",
|
||||
"version": "3.1.10",
|
||||
"version": "3.1.11",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "game-server-watcher",
|
||||
"version": "3.1.10",
|
||||
"version": "3.1.11",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@slack/bolt": "^3.17.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "game-server-watcher",
|
||||
"version": "3.1.10",
|
||||
"version": "3.1.11",
|
||||
"description": "A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎",
|
||||
"exports": "./dist/server.js",
|
||||
"type": "module",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user