File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ RUN touch src/main.rs && \
4242 --target $(cat TARGET) \
4343 --config target.$(cat TARGET).linker='"' $(cat LINKER)'"' \
4444 --profile superoptimized && \
45- mv target/$(cat TARGET)/superoptimized/sqlpage sqlpage.bin
45+ mv target/$(cat TARGET)/superoptimized/sqlpage sqlpage.bin && \
46+ mkdir -p deps && \
47+ ldd sqlpage.bin | awk '($3 ~ /^\/ /) {print $3} ($1 ~ /^\/ /) {print $1}' | sort -u | xargs -I '{}' cp --parents '{}' deps/
4648
4749FROM busybox:glibc
4850RUN addgroup --gid 1000 --system sqlpage && \
@@ -55,6 +57,7 @@ ENV SQLPAGE_CONFIGURATION_DIRECTORY=/etc/sqlpage
5557WORKDIR /var/www
5658COPY --from=builder /usr/src/sqlpage/sqlpage.bin /usr/local/bin/sqlpage
5759COPY --from=builder /usr/src/sqlpage/libgcc_s.so.1 /lib/libgcc_s.so.1
60+ COPY --from=builder /usr/src/sqlpage/deps/ /
5861USER sqlpage
5962COPY --from=builder --chown=sqlpage:sqlpage /usr/src/sqlpage/sqlpage/sqlpage.db sqlpage/sqlpage.db
6063EXPOSE 8080
You can’t perform that action at this time.
0 commit comments