-
-
Save refaktor/d05d550d20fb882c74c70104fd929bfb to your computer and use it in GitHub Desktop.
Docker file for installing latest Red lang build, doesn't need to recompile console each run
This file contains 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 debian:buster-slim | |
WORKDIR / | |
RUN apt update &&\ | |
dpkg --add-architecture i386 &&\ | |
apt-get update &&\ | |
apt-get install -y libc6:i386 libcurl4:i386 \ | |
libgtk-3-0:i386 libgdk-pixbuf2.0-0:i386 wget xvfb | |
RUN wget https://static.red-lang.org/dl/auto/linux/red-latest -O red && \ | |
chmod +x red && \ | |
mv red /usr/local/bin/ | |
ENV DISPLAY :99 | |
RUN echo 'Red [] print "Hello"' > hello.red &&\ | |
printf "#!/bin/bash\nred $@" > run-red.sh &&\ | |
chmod +x run-red.sh | |
RUN Xvfb :99 & | |
RUN ./run-red.sh hello.red | |
ENTRYPOINT bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment