|
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
|