Skip to content

Commit c84f568

Browse files
voslucasclaude
andcommitted
Add Docker support, GitHub Actions CI, and project documentation
- Dockerfile: multi-stage build (SDK → ASP.NET 8), HTTP port 8080, volumes for media/data/logs - .dockerignore: excludes build artifacts, local DB, and dev-only files - .github/workflows/docker-publish.yml: builds and pushes to ghcr.io on main push - docker-compose.example.yml: full stack with SQL Server 2022, healthcheck, named volumes - .env.example: template for all required production environment variables - README.md: project overview, local dev setup, Docker and Compose instructions - CLAUDE.md: AI context file covering architecture, key dirs, config, CI/CD notes - Ludero.Site/.gitignore: exclude appsettings.Development.json (contains credentials) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1637fbf commit c84f568

1,175 files changed

Lines changed: 112405 additions & 450 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**/.git
2+
**/.vs
3+
**/.github
4+
**/bin
5+
**/obj
6+
**/Logs
7+
Ludero.Site/umbraco/Data
8+
Ludero.Site/wwwroot/media
9+
**/*.user
10+
**/*.suo
11+
.dockerignore
12+
docker-compose*.yml
13+
README.md
14+
CLAUDE.md

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copy this file to .env and fill in the values before running docker compose.
2+
# .env is excluded from git via .gitignore.
3+
4+
# SQL Server sa password — min 8 chars, upper+lower+digit+symbol
5+
MSSQL_SA_PASSWORD=Change_Me_Str0ng!
6+
7+
# Umbraco admin account created on first run
8+
UMBRACO_ADMIN_EMAIL=admin@example.com
9+
UMBRACO_ADMIN_PASSWORD=Change_Me_Str0ng!
10+
11+
# Public base URL of the site (used for absolute link generation)
12+
SITE_URL=https://example.com
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build and publish Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: ${{ github.repository }}
11+
12+
jobs:
13+
build-and-push:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Log in to GitHub Container Registry
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ${{ env.REGISTRY }}
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Extract metadata
31+
id: meta
32+
uses: docker/metadata-action@v5
33+
with:
34+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
35+
tags: |
36+
type=raw,value=latest,enable={{is_default_branch}}
37+
type=sha,prefix=sha-
38+
39+
- name: Set up Docker Buildx
40+
uses: docker/setup-buildx-action@v3
41+
42+
- name: Build and push
43+
uses: docker/build-push-action@v6
44+
with:
45+
context: .
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}
49+
cache-from: type=gha
50+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)