Skip to content

Instantly share code, notes, and snippets.

@refaktor

refaktor/Docker Secret

Created February 6, 2022 14:16
Show Gist options
  • Save refaktor/d05d550d20fb882c74c70104fd929bfb to your computer and use it in GitHub Desktop.
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
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