This repository was archived by the owner on Sep 5, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
refactor: use alpine for web app #50
Open
sghng
wants to merge
9
commits into
main
Choose a base branch
from
refactor/alpine
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
517e5e8
migrate to alpine
sghng b289442
no bin pkg for saxonche
sghng 1950257
use manylinux fot the whole cli
sghng 1c86da2
manually install uv
sghng e002aa9
invoke script directly
sghng 53985e1
fix file copying path
sghng 7fd47c3
additional libxml2 installation
sghng 989cd9a
uv is now available in rust image
sghng f26abf7
apk add --no-cache
sghng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,31 +1,20 @@ | ||||||||||||||||||||||
| FROM rust:slim AS typ2docx | ||||||||||||||||||||||
| RUN apt update && apt install -y --no-install-recommends \ | ||||||||||||||||||||||
| curl pkg-config libssl-dev | ||||||||||||||||||||||
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh | ||||||||||||||||||||||
| FROM rust:alpine AS typ2docx | ||||||||||||||||||||||
| RUN apk add --no-cache pkgconfig openssl-dev gcompat | ||||||||||||||||||||||
| COPY pyproject.toml / | ||||||||||||||||||||||
| RUN /root/.local/bin/uv tool install typ2docx --verbose | ||||||||||||||||||||||
| RUN uv tool install typ2docx --python-platform x86_64-manylinux_2_40 --verbose | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # align with oven/bun:slim | ||||||||||||||||||||||
| FROM rust:slim-bookworm AS typst | ||||||||||||||||||||||
| RUN apt update && apt install -y --no-install-recommends pkg-config libssl-dev | ||||||||||||||||||||||
| COPY Cargo.toml / | ||||||||||||||||||||||
| RUN cargo install typst-cli | ||||||||||||||||||||||
| FROM alpine:edge AS typst | ||||||||||||||||||||||
| RUN apk add --no-cache typst | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
Comment on lines
+6
to
8
|
||||||||||||||||||||||
| FROM alpine:edge AS typst | |
| RUN apk add typst | |
| FROM alpine:3.20 AS typst | |
| RUN apk add --no-cache ca-certificates wget tar | |
| # Install specific typst version (e.g., v0.10.0) | |
| ENV TYPST_VERSION=0.10.0 | |
| RUN wget -O typst.tar.xz https://github.com/typst/typst/releases/download/v${TYPST_VERSION}/typst-x86_64-unknown-linux-musl.tar.xz \ | |
| && tar -xf typst.tar.xz \ | |
| && mv typst-x86_64-unknown-linux-musl/typst /usr/bin/typst \ | |
| && rm -rf typst-x86_64-unknown-linux-musl typst.tar.xz |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
gcompatpackage provides GNU libc compatibility for musl-based Alpine, which is needed for Python packages likesaxonche(listed in pyproject.toml) that have glibc dependencies. However,gcompatmay not fully support all glibc features. Consider testing thoroughly to ensure all Python dependencies (especiallysaxonche,pdfservices-sdk, andpdf2docx) work correctly with musl/gcompat, or document any known limitations.