mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-02 13:05:00 -06:00
I think this was from back when the Dockerfile was first being written, before the 'builder' and 'final' stages were introduced which make this former optimization attempt completely redundant
27 lines
877 B
Docker
27 lines
877 B
Docker
# This Dockerfile assumes that it is being built from the project root directory, e.g.:
|
|
# $ docker build -f docker/azahar-room/Dockerfile -t azahar-room .
|
|
|
|
# --- Builder ----------------
|
|
FROM opensauce04/azahar-build-environment:latest AS builder
|
|
|
|
COPY . /var/azahar-src
|
|
|
|
RUN mkdir ./builddir/
|
|
WORKDIR ./builddir/
|
|
RUN cmake /var/azahar-src -G Ninja \
|
|
-DENABLE_QT=OFF \
|
|
-DENABLE_GDBSTUB=OFF \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_ROOM=ON \
|
|
-DENABLE_ROOM_STANDALONE=ON
|
|
RUN ninja
|
|
RUN mv ./bin/Release/azahar-room /usr/local/bin/
|
|
|
|
# --- Final ------------------
|
|
FROM debian:trixie AS final
|
|
|
|
RUN apt-get update && apt-get -y full-upgrade
|
|
RUN apt-get install -y iputils-ping net-tools
|
|
|
|
COPY --from=builder /usr/local/bin/azahar-room /usr/local/bin/azahar-room
|