Skip to content

Commit 92a29b9

Browse files
committed
fix(Dockerfile): update SQLite installation path and LibRaw download link for consistency
1 parent 5066477 commit 92a29b9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
77
Builds a minimal Alpine Linux Docker image (`photostructure/base-tools`) that compiles and bundles native dependencies for PhotoStructure for Docker:
88

99
- **LibRaw** (image processing for raw camera files) — compiled from source, installed to `/opt/photostructure/tools`
10-
- **SQLite 3** — compiled without readline, stripped binary installed to `/opt/photostructure/tools/bin`
10+
- **SQLite 3** — compiled without readline, stripped binary installed to `/opt/photostructure/tools`
1111

1212
The final image is published to Docker Hub (`photostructure/base-tools`) and GHCR (`ghcr.io/photostructure/base-tools`) for both `linux/amd64` and `linux/arm64`.
1313

@@ -40,10 +40,10 @@ The Dockerfile uses a single build stage (`AS builder`) on `node:24-alpine`:
4040
1. `apk add` build dependencies (autoconf, automake, lcms2-dev, libjpeg-turbo-dev, orc-dev, zlib-dev, util-linux-dev, etc.)
4141
2. Download LibRaw via GitHub REST API tarball (by commit SHA), build with `./configure --prefix=/opt/photostructure/tools && make`
4242
3. Remove everything from the LibRaw install except `libraw.so`, `dcraw_emu`, and `raw-identify`
43-
4. Download SQLite autoconf tarball from sqlite.org, build with `--disable-readline`, strip and copy to `/opt/photostructure/tools/bin`
44-
5. Strip all binaries in `/opt/photostructure/tools/bin`
43+
4. Download SQLite autoconf tarball from sqlite.org, build with `--disable-readline`, strip and copy to `/opt/photostructure/tools`
44+
5. Strip all binaries in `/opt/photostructure/tools`
4545

46-
Output artifacts live at `/opt/photostructure/tools/bin/` and are consumed by downstream PhotoStructure Docker images.
46+
Output artifacts live at `/opt/photostructure/tools/` and are consumed by downstream PhotoStructure Docker images.
4747

4848
## Updating Dependencies
4949

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,28 @@ RUN apk update ; apk upgrade ; apk add --no-cache \
4545
&& mkdir -p /opt/photostructure/tools \
4646
&& mkdir -p /tmp/libraw \
4747
&& cd /tmp/libraw \
48-
&& curl -L https://api.github.com/repos/LibRaw/LibRaw/tarball/0b56545a4f828743f28a4345cdfdd4c49f9f9a2a | tar -xz --strip 1 \
48+
&& curl -L https://api.github.com/repos/LibRaw/LibRaw/tarball/ca5d4507ef6f64cbf753fbc40c71773bb697fff9 | tar -xz --strip 1 \
4949
&& autoreconf -fiv \
50-
&& ./configure --prefix=/opt/photostructure/tools \
50+
&& ./configure --prefix=/tmp/libraw/install \
5151
&& make -j `nproc` \
5252
&& make install \
53-
&& rm $(find /opt/photostructure/tools -type f | grep -vE "libraw.so|dcraw_emu|raw-identify") \
54-
&& rmdir -p --ignore-fail-on-non-empty $(find /opt/photostructure/tools -type d) \
53+
&& cp -p /tmp/libraw/install/bin/dcraw_emu /tmp/libraw/install/bin/raw-identify /opt/photostructure/tools/ \
54+
&& cp -p /tmp/libraw/install/lib/libraw.so* /opt/photostructure/tools/ \
5555
&& rm -rf /tmp/libraw \
5656
&& mkdir -p /tmp/sqlite \
5757
&& cd /tmp/sqlite \
5858
&& curl https://sqlite.org/2026/sqlite-autoconf-3510200.tar.gz | tar -xz --strip 1 \
5959
&& ./configure --disable-readline \
6060
&& make -j `nproc` \
6161
&& strip sqlite3 \
62-
&& cp -p sqlite3 /opt/photostructure/tools/bin \
62+
&& cp -p sqlite3 /opt/photostructure/tools/ \
6363
&& rm -rf /tmp/sqlite \
64-
&& strip /opt/photostructure/tools/bin/*
64+
&& strip /opt/photostructure/tools/*
6565

6666
# Note: static binaries would be a bit more portable, but installing
6767
# libjpeg isn't that big of a deal.
6868

6969
# Stripped LibRaw and SQLite binaries should now be sitting in
70-
# /opt/photostructure/tools/bin.
70+
# /opt/photostructure/tools/.
7171

7272
# docker build -t photostructure/base-tools .

0 commit comments

Comments
 (0)