fix vulkan dockerfile
This commit is contained in:
parent
b86d0ac514
commit
85bb983c3c
2 changed files with 10 additions and 6 deletions
|
@ -12,15 +12,17 @@ RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key
|
||||||
apt-get install -y vulkan-sdk
|
apt-get install -y vulkan-sdk
|
||||||
|
|
||||||
# Build it
|
# Build it
|
||||||
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN mkdir build && \
|
RUN mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. -DLLAMA_VULKAN=1 && \
|
cmake .. -DLLAMA_VULKAN=1 && \
|
||||||
cmake --build . --config Release --target main
|
cmake --build . --config Release --target main
|
||||||
|
|
||||||
FROM ubuntu:$UBUNTU_VERSION as runtime
|
# Clean up
|
||||||
|
WORKDIR /
|
||||||
COPY --from=build /app/build/bin/main /main
|
RUN cp /app/build/bin/main /main && \
|
||||||
|
rm -rf /app
|
||||||
|
|
||||||
ENV LC_ALL=C.utf8
|
ENV LC_ALL=C.utf8
|
||||||
|
|
||||||
|
|
|
@ -12,15 +12,17 @@ RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key
|
||||||
apt-get install -y vulkan-sdk
|
apt-get install -y vulkan-sdk
|
||||||
|
|
||||||
# Build it
|
# Build it
|
||||||
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN mkdir build && \
|
RUN mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. -DLLAMA_VULKAN=1 && \
|
cmake .. -DLLAMA_VULKAN=1 && \
|
||||||
cmake --build . --config Release --target server
|
cmake --build . --config Release --target server
|
||||||
|
|
||||||
FROM ubuntu:$UBUNTU_VERSION as runtime
|
# Clean up
|
||||||
|
WORKDIR /
|
||||||
COPY --from=build /app/build/bin/server /server
|
RUN cp /app/build/bin/server /server && \
|
||||||
|
rm -rf /app
|
||||||
|
|
||||||
ENV LC_ALL=C.utf8
|
ENV LC_ALL=C.utf8
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue