OpenFrontIO - Online real-time strategy game
4.6K
Automated Docker builds for OpenFrontIO - an online real-time strategy game focused on territorial control and alliance building.
A docker-compose.yml file is included in this repository. Access the game at http://localhost after starting.
latest - Latest build from the main branchYYYYMMDD-HHMMSS - Timestamped builds from the nightly scheduled runsThe included PowerShell script will clone the repository and build the image:
# Build only
.\build-local.ps1
# Build and push to Docker Hub
.\build-local.ps1 -Push
# Build with custom tag
.\build-local.ps1 -Push -Tag "v1.0.0"
git clone https://github.com/openfrontio/OpenFrontIO.git
cd OpenFrontIO
docker build -t devedse/openfrontio:latest .
docker push devedse/openfrontio:latest
This repository includes a GitHub Actions workflow that:
Add the following secret to your repository:
DOCKERHUBTOKEN - Your Docker Hub access tokenTo create a Docker Hub token:
Login to Docker Hub before pushing:
docker login
Or with PowerShell:
docker login
The OpenFrontIO container supports the following environment variables:
| Variable | Description | Required |
|---|---|---|
CF_ACCOUNT_ID | Cloudflare Account ID (for tunnel setup) | No |
CF_API_TOKEN | Cloudflare API Token | No |
DOMAIN | Your domain name | No |
SUBDOMAIN | Subdomain for the deployment | No |
TURNSTILE_SECRET_KEY | Cloudflare Turnstile secret key | No |
API_KEY | API key for backend services | No |
/etc/cloudflared - Cloudflare tunnel configuration (persisted)80 - HTTP web server (nginx)The Docker image is built from the official OpenFrontIO repository using their multi-stage Dockerfile:
OpenFrontIO source code is licensed under the GNU Affero General Public License v3.0. For asset licensing, see the LICENSE-ASSETS file.
This Docker build repository is maintained separately and is not officially affiliated with the OpenFrontIO project.
This is a build automation repository. For contributing to OpenFrontIO itself, please visit the main repository.
For OpenFrontIO game issues, please visit:
For Docker build issues related to this repository, please open an issue here.
To run with development settings and access logs:
docker run -d \
--name openfrontio-dev \
-p 80:80 \
-v $(pwd)/logs:/var/log/supervisor \
devedse/openfrontio:latest
docker run -d \
--name openfrontio \
-p 80:80 \
-v $(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf:ro \
devedse/openfrontio:latest
# All logs
docker logs openfrontio
# Follow logs
docker logs -f openfrontio
# Supervisor logs
docker exec openfrontio cat /var/log/supervisor/supervisord.log
Note: This Docker image is built from the official OpenFrontIO source code. All game credits go to the OpenFrontIO team and contributors.
Content type
Image
Digest
sha256:4f46393b6…
Size
253.4 MB
Last updated
8 months ago
docker pull devedse/openfrontio