tools/fteqw-docker/Dockerfile
Peter0x44 446eead965 Update Docker for SDL2
There are various changes put into this one commit, I am too lazy to split
them up. I have tested this passes CI for all desktop platforms + web.

I switched from Ubuntu to Debian, because dpkg --add-architecture
doesn't seem to work on Ubuntu, and it's necessary to obtain SDL so
cross-compilation works.

I removed osxcross because it builds llvm, which takes a long time, and
I didn't want to wait. It's broken/unused anyway, so not really a loss.
It can still be added back more carefully in future.

I fixed the web CI by installing Debian's emscripten package. It seems
to build fine, I downloaded the artifact and tested it locally with
emrun, and the fte help menu showed up. I'm not sure how to test
further than that, but I doubt anything is broken.
2024-06-14 13:41:03 +01:00

31 lines
771 B
Docker

# Source Debian for better package sourcing when cross-compiling
FROM debian:bookworm-slim
# For obtaining SDL when cross-compiling
RUN dpkg --add-architecture i386 \
&& dpkg --add-architecture armhf \
&& dpkg --add-architecture arm64
RUN apt-get update \
&& apt-get install -y \
zip \
git \
wget \
emscripten \
build-essential \
crossbuild-essential-i386 \
crossbuild-essential-armhf \
crossbuild-essential-arm64 \
gcc-mingw-w64-i686 \
gcc-mingw-w64-x86-64 \
mingw-w64-i686-dev \
mingw-w64-x86-64-dev \
mingw-w64-tools \
libsdl2-dev \
libsdl2-dev:i386 \
libsdl2-dev:arm64 \
libsdl2-dev:armhf \
libgnutls28-dev \
libgnutls28-dev:i386 \
libgnutls28-dev:arm64 \
libgnutls28-dev:armhf