mirror of
https://github.com/LostArtefacts/TR2X.git
synced 2025-02-13 18:19:46 +00:00
45 lines
1.1 KiB
Docker
45 lines
1.1 KiB
Docker
# TR2X building toolchain.
|
|
#
|
|
# This is a multi-stage Docker image. It is designed to keep the final image
|
|
# size low. Each stage builds an external dependency. The final stage takes the
|
|
# artifacts (binaries, includes etc.) from previous stages and installs all the
|
|
# tools necessary to build TR2X.
|
|
|
|
# MinGW
|
|
FROM ubuntu:latest as mingw
|
|
|
|
# don't prompt during potential installation/update of tzinfo
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV TZ=Europe/Warsaw
|
|
|
|
RUN apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get install -y \
|
|
gcc-mingw-w64-i686 \
|
|
g++-mingw-w64-i686 \
|
|
git \
|
|
make
|
|
|
|
|
|
# TR2X
|
|
FROM mingw
|
|
|
|
# set the build dir - actual files are mounted with a Docker volume
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
|
|
# system dependencies
|
|
# configure pkgconfig manually
|
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=967969
|
|
RUN apt-get install -y \
|
|
mingw-w64-tools \
|
|
pkg-config \
|
|
upx \
|
|
python3-pip \
|
|
&& python3 -m pip install \
|
|
pyjson5 \
|
|
meson \
|
|
ninja
|
|
|
|
ENTRYPOINT ["/app/docker/game-win/entrypoint.sh"]
|