Skip to content

Commit

Permalink
Reduced size of swiftshader 2gb->150mb
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Saucedo <[email protected]>
  • Loading branch information
axsaucedo committed Nov 20, 2022
1 parent c501ff6 commit a48003a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker-builders/Swiftshader.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG VULKAN_SDK_VERSION
FROM axsauze/vulkan-sdk:$VULKAN_SDK_VERSION as vulkansdk-image

# Ubuntu as actual image base
FROM ubuntu:22.04
FROM ubuntu:22.04 as swiftshader-builder

# Repeating ARG for context in this image
ARG VULKAN_SDK_VERSION
Expand Down Expand Up @@ -41,3 +41,9 @@ RUN cmake swiftshader-build/. -Bswiftshader-build/build/
RUN cmake --build swiftshader-build/build/. --parallel 8
RUN cp -r swiftshader-build/build/Linux/ swiftshader/


# Store build in slim down image
FROM ubuntu:22.04

COPY --from=swiftshader-builder /swiftshader/ /swiftshader/

0 comments on commit a48003a

Please sign in to comment.