dockerfiles/emscripten-rust-sdl

8 lines
266 B
Plaintext
Raw Normal View History

2024-05-29 01:30:15 +00:00
FROM remram/emscripten-rust
# Install libsdl
RUN apt-get update && apt-get install -y libsdl2-dev && rm -rf /var/lib/apt/lists/*
# Build port
RUN echo 'int main() {}' >/helloworld.c && emcc -s USE_SDL=2 -o /helloworld /helloworld.c && rm /helloworld.c /helloworld