forked from id-Software/DOOM-3-BFG
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include Vulkan SDK and ability to select build configuration
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,34 @@ | ||
FROM ubuntu:focal AS build | ||
FROM ubuntu:focal AS rbdoom3bfg-buildenv | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
# Add the Vulkan SDK repository | ||
RUN apt-get update \ | ||
&& apt-get install -y curl gpg\ | ||
&& curl -Lso /tmp/lunarg-signing-key-pub.asc \ | ||
http://packages.lunarg.com/lunarg-signing-key-pub.asc \ | ||
&& apt-key add /tmp/lunarg-signing-key-pub.asc \ | ||
&& curl -Lso /etc/apt/sources.list.d/lunarg-vulkan-focal.list \ | ||
http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list | ||
|
||
ADD . /workspace | ||
# Install the general RBDoom3BFG dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential git cmake \ | ||
libsdl2-dev libopenal-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev | ||
libsdl2-dev libopenal-dev vulkan-sdk \ | ||
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev | ||
|
||
# From the previous build environment stage, actually run the build | ||
FROM rbdoom3bfg-buildenv AS build | ||
|
||
ARG CONFIGSCRIPT=cmake-eclipse-linux-profile.sh | ||
ENV CONFIGSCRIPT=${CONFIGSCRIPT} | ||
|
||
ADD . /workspace | ||
WORKDIR /workspace | ||
RUN cd neo && ./cmake-eclipse-linux-profile.sh | ||
RUN cd neo && ./${CONFIGSCRIPT} | ||
RUN cd build && make | ||
|
||
# Copy only the finished RBDoom3BFG executable to an empty image | ||
# for use with docker build --output | ||
FROM scratch AS export | ||
COPY --from=build /workspace/build/RBDoom3BFG /workspace/base/maps/ / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters