Initial version
This commit is contained in:
21
.github/workflows/publish.yml
vendored
Normal file
21
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Publish image
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.repository }}:latest
|
||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
fontforge ttfautohint \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --no-cache-dir fonttools
|
||||
|
||||
WORKDIR /build
|
||||
37
README.md
Normal file
37
README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# fntbld-oci
|
||||
|
||||
A container image with font-building tools pre-installed:
|
||||
|
||||
- **FontForge** — scriptable font editor
|
||||
- **ttfautohint** — auto-hinter for TrueType fonts
|
||||
- **fontTools** — Python library for manipulating font files
|
||||
|
||||
The image contains no project-specific files. Mount or clone your font project into `/build` at runtime.
|
||||
|
||||
## Build locally
|
||||
|
||||
```bash
|
||||
podman build -t fntbld-oci .
|
||||
```
|
||||
|
||||
## Pull from GitHub Container Registry
|
||||
|
||||
```bash
|
||||
podman pull ghcr.io/nicoverbruggen/fntbld-oci:latest
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
From your font project directory:
|
||||
|
||||
```bash
|
||||
podman run --rm -v .:/build ghcr.io/nicoverbruggen/fntbld-oci python3 build.py
|
||||
```
|
||||
|
||||
## Debugging
|
||||
|
||||
To rebuild and get a shell inside the container:
|
||||
|
||||
```bash
|
||||
podman build -t fntbld-oci . && podman run --rm -it fntbld-oci sh
|
||||
```
|
||||
Reference in New Issue
Block a user