Last active
September 1, 2024 21:03
-
-
Save dderevjanik/1be7840284b58af65a32ce2a7d15a840 to your computer and use it in GitHub Desktop.
doomrl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| docker build --progress=plain -t doomrl . | |
| # Run the Docker container in detached mode | |
| container_id=$(docker run -d doomrl) | |
| # Copy the folder from the container to the host | |
| docker cp ${container_id}:/chaosforgeorg/doomrl/bin . | |
| # Stop and remove the container | |
| docker stop ${container_id} | |
| docker rm ${container_id} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:24.04 | |
| WORKDIR /chaosforgeorg | |
| # Install necessary packages | |
| RUN apt update | |
| RUN apt install -y \ | |
| git \ | |
| curl \ | |
| unzip | |
| RUN git clone https://github.com/chaosforgeorg/doomrl.git \ | |
| && git clone https://github.com/chaosforgeorg/fpcvalkyrie.git | |
| RUN apt install -y \ | |
| lua5.1 \ | |
| liblua5.1-0-dev \ | |
| fp-compiler \ | |
| fp-units-base \ | |
| fp-units-fcl \ | |
| fp-units-misc | |
| RUN apt install -y \ | |
| libsdl2-2.0-0 \ | |
| libsdl2-image-2.0-0 \ | |
| libsdl2-mixer-2.0-0 \ | |
| libsdl2-ttf-2.0-0 \ | |
| libx11-dev | |
| # RUN curl -L -o drl-win-0998.zip https://drl.chaosforge.org/file_download/41/drl-win-0998.zip | |
| # COPY drl-win-0998.zip . | |
| # RUN unzip drl-win-0998.zip \ | |
| # && cp drl-win-0998/mp3/* doomrl/bin/mp3 \ | |
| # && cp drl-win-0998/wavhq/* doomrl/bin/wavhq | |
| # RUN curl -L -o drl-linux-0998.tar.gz https://drl.chaosforge.org/file_download/41/drl-linux-0998.tar.gz | |
| COPY drl-linux-0998.tar.gz . | |
| RUN tar -xzf drl-linux-0998.tar.gz \ | |
| && cp drl-linux-0998/mp3/* doomrl/bin/mp3 \ | |
| && cp drl-linux-0998/wavhq/* doomrl/bin/wavhq | |
| ENV HOME=/home | |
| RUN ldconfig | |
| RUN cd doomrl && mkdir tmp && lua5.1 ./makefile.lua |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment