Skip to content

Commit

Permalink
Copy libsqlite3.so to final image
Browse files Browse the repository at this point in the history
  • Loading branch information
redsolver committed Sep 9, 2023
1 parent 5c40c00 commit f287154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ RUN dart pub get \
&& chmod +x bin/s5_server \
&& mkdir -p /runtime/lib \
&& ldd bin/s5_server | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /runtime/lib/ \
&& ldd librust.so | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /runtime/lib/
&& ldd librust.so | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' /runtime/lib/ \
&& find / -name libsqlite3.so | xargs -I '{}' cp -v '{}' /runtime/lib/

# Copy build to fresh image because without doing this the image
# is like 5.6GB lol (it's now like 22MB!)
Expand Down

0 comments on commit f287154

Please sign in to comment.