Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c31b29

Browse files
committedFeb 28, 2024··
Implement more suggestions
- Pin genent version to latest stable release of UClibc - Add checksum checks for all ADD clauses in Spacedrive server Dockerfile
1 parent 12b6677 commit 6c31b29

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎apps/server/docker/Dockerfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ ARG REPO_REF=main
55

66
FROM debian:bookworm as base
77

8-
ADD https://gist.githubusercontent.com/HeavenVolkoff/ff7b77b9087f956b8df944772e93c071/raw \
8+
ADD --chmod=644 --checksum=sha256:8bea540b2cd1a47c94555e746c75fd41a42847a46d8c8c36c7ab6dd9c8526ab4 \
9+
https://gist.githubusercontent.com/HeavenVolkoff/ff7b77b9087f956b8df944772e93c071/raw \
910
/etc/apt/apt.conf.d/99docker-apt-config
1011

1112
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
@@ -102,8 +103,11 @@ ENV TZ=UTC \
102103
COPY --from=server --chmod=755 /srv/spacedrive/target/release/sd-server /usr/bin/
103104
COPY --from=server --chmod=755 /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib/
104105
COPY --from=server --chmod=755 /srv/spacedrive/apps/.deps/lib /usr/lib/spacedrive
105-
ADD --chmod=755 https://raw.githubusercontent.com/kraj/uClibc/ca1c74d67dd115d059a875150e10b8560a9c35a8/extra/scripts/getent /usr/bin/
106-
ADD --chmod=755 https://github.com/spacedriveapp/native-deps/releases/download/yolo-2024-02-07/yolov8s.onnx /usr/share/spacedrive/models/yolov8s.onnx
106+
107+
ADD --chmod=755 --checksum=sha256:a99beabea22571cfad4f77422e5d3ed922d9490232d94cb87cf32956766bc42a \
108+
https://github.com/kraj/uClibc/raw/v0.9.33.2/extra/scripts/getent /usr/bin/
109+
ADD --chmod=755 --checksum=sha256:1d127c69218f2cd14964036f2b057c4b2652cda3996c6908605cc139192f66aa \
110+
https://github.com/spacedriveapp/native-deps/releases/download/yolo-2024-02-07/yolov8s.onnx /usr/share/spacedrive/models/yolov8s.onnx
107111

108112
COPY --chmod=755 entrypoint.sh /usr/bin/
109113

0 commit comments

Comments
 (0)
Please sign in to comment.