Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(docker): provide writable /tmp directory in runtime image
Timothy Yin4756d5163944
diff --git a/Dockerfile b/Dockerfileindex 222a1c33..4d193986 100644--- a/Dockerfile+++ b/Dockerfile@@ -22,7 +22,9 @@ FROM node:22.23.3-alpine AS runtime_depsRUN apk add --no-cache ca-certificates perl exiftool \&& install -Dm755 "$(readlink -f /usr/bin/perl)" /opt/runtime-bin/perl \&& install -Dm755 "$(readlink -f /usr/bin/env)" /opt/runtime-bin/env \- && install -Dm755 "$(readlink -f /usr/bin/exiftool)" /opt/runtime-bin/exiftool+ && install -Dm755 "$(readlink -f /usr/bin/exiftool)" /opt/runtime-bin/exiftool \+ && mkdir -p /opt/runtime-tmp \+ && chmod 1777 /opt/runtime-tmpFROM scratch AS runtimeWORKDIR /app@@ -35,6 +37,8 @@ COPY --from=runtime_deps /usr/lib /usr/libCOPY --from=runtime_deps /usr/share /usr/shareCOPY --from=runtime_deps /lib /libCOPY --from=runtime_deps /etc/ssl /etc/ssl+# scratch has no temporary directory; uploads and image processing need one.+COPY --from=runtime_deps --chmod=1777 /opt/runtime-tmp /tmpCOPY --from=build /usr/src/app/.output ./.outputCOPY --from=build /usr/src/app/server/database/migrations ./server/database/migrations