-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (19 loc) · 825 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM debian:sid-slim AS builder-stage
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install -y build-essential ninja-build cmake gdb-multiarch gcc-mipsel-linux-gnu g++-mipsel-linux-gnu binutils-mipsel-linux-gnu
WORKDIR /build/
COPY cmake cmake
COPY tools tools
COPY third_party third_party
COPY CMakeLists.txt .
RUN cmake -GNinja -B build -DCMAKE_BUILD_TYPE="Release"
RUN cmake --build build
COPY games games
# FIXME: somehow install Blender and build assets?
RUN cmake -GNinja -B build_games -S games -DBUILD_ASSETS=OFF -DCMAKE_BUILD_TYPE="Release"
RUN cmake --build build_games
FROM scratch
COPY --from=builder-stage /build/build_games/cat_adventure/game.iso /
COPY --from=builder-stage /build/build_games/cat_adventure/game.cue /
COPY --from=builder-stage /build/build_games/cat_adventure/game.elf /