Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(devnet): integrate devnet and frontend #35

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions util/devnet/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
version: "3.7"

services:
web:
build: ../../web
networks:
- gnonode
ports:
- 1313:1313
restart: on-failure
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "100m"
deployer:
build: ./deployer
networks:
Expand Down
15 changes: 15 additions & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20-bookworm

RUN apt-get update && \
apt-get install -y hugo dumb-init && \
mkdir /app

WORKDIR /app

COPY package.json package-lock.json .

RUN npm install

COPY . /app

CMD ["dumb-init", "npm", "run", "dev"]
4 changes: 3 additions & 1 deletion web/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
baseURL = "https://gnochess.com/"
DefaultContentLanguage = "en"
title = "GnoChess"
enableGitInfo = true
enableGitInfo = false
enableRobotsTXT = true
disableKinds = ["taxonomy"]
ignoreErrors = ["error-disable-taxonomy"]

[params]
themeColor = "#363636"
cover = "/img/og.png"
Expand Down