Skip to content
Merged
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
58 changes: 58 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Docker

on:
push:
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_PREFIX: ghcr.io/${{ github.repository_owner }}

jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0

- name: Log in to GHCR
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for Docs
id: meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
with:
images: ${{ env.IMAGE_PREFIX }}/docs
tags: |
type=raw,value=latest

- name: Build and push Docs image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: true
sbom: true
22 changes: 6 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,18 @@ FROM node:25-alpine AS builder

WORKDIR /app

COPY package.json package-lock.json* ./
RUN npm ci
RUN apk add --no-cache git

COPY . .
RUN npm ci

RUN npm run build

FROM nginx:alpine

COPY --from=builder /app/dist/client /usr/share/nginx/html/docs

RUN printf 'server {\n\
listen 80;\n\
root /usr/share/nginx/html;\n\
\n\
location /docs {\n\
try_files $uri $uri/ /docs/index.html;\n\
}\n\
\n\
location = / {\n\
return 301 /docs;\n\
}\n\
}\n' > /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist/client /usr/share/nginx/html

COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 80

Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Alexander Konietzko, Timo Kössler, Maxim Bigler, Maik Niehues

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 9 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
docs:
build:
context: .
dockerfile: Dockerfile
container_name: orca-docs
ports:
- "127.0.0.1:8080:80"
restart: unless-stopped
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
docs:
image: orcacd/docs:latest
container_name: orca-docs
ports:
- "127.0.0.1:8080:80"
restart: unless-stopped
10 changes: 10 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;

location / {
try_files $uri $uri/ /index.html;
}
}
46 changes: 1 addition & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"oxlint-tsgolint": "^0.19.0",
"serve": "^14.2.6",
"tailwindcss": "^4.2.1",
"typescript": "^6.0.2",
"vite-tsconfig-paths": "^6.1.1"
"typescript": "^6.0.2"
}
}
20 changes: 13 additions & 7 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@ import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import react from "@vitejs/plugin-react";
import mdx from "fumadocs-mdx/vite";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";
import * as MdxConfig from "./source.config";

export default defineConfig({
base: "/docs",
server: {
port: 3000,
},
plugins: [
mdx(MdxConfig),
mdx(await import("./source.config")),
tailwindcss(),
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart({
spa: {
enabled: true,
Expand All @@ -34,8 +28,20 @@ export default defineConfig({
{
path: "/api/search",
},
{
path: "llms-full.txt",
},
{
path: "llms.txt",
},
],
}),
react(),
],
resolve: {
tsconfigPaths: true,
alias: {
tslib: "tslib/tslib.es6.js",
},
},
});