Sign inSign up

sergiomtzlosa/lolcode

By sergiomtzlosa

Updated over 6 years ago

Run lolcode interpreter into Alpine linux

Image
0

262

sergiomtzlosa/lolcode repository overview

RUN LOCODE INTERPRETER IN DOCKER BTW

FULL DOCKERFILE:

FROM alpine:latest

RUN apk update && apk upgrade

RUN apk add git cmake clang clang-dev make gcc g++ libc-dev linux-headers doxygen bash

ENV PYTHONUNBUFFERED=1

RUN apk add --no-cache python && \
    python -m ensurepip && \
    rm -r /usr/lib/python*/ensurepip && \
    pip install --upgrade pip setuptools && \
    rm -r /root/.cache

WORKDIR /root

RUN git clone https://github.com/justinmeza/lci.git

RUN cd lci && cmake . && mkdir -p /root/opt && chmod +x install.py && ./install.py --prefix="/root/opt"

ENV PATH="/root/lci:${PATH}"

CMD ["/bin/bash"]

Enter the image with this command:

docker run -it IMAGE_ID bash

Then run lci interpreter:

lci -h

Run your LOL file in one line:

docker run --rm -v "$PWD":/code:ro IMAGE_ID lci /code/helloworld.lol

hellowworld.lol

HAI 1.3

BTW This is the famous 'Hello World' program

VISIBLE "Hello World"

KTHXBYE

Tag summary

Content type

Image

Digest

Size

143.8 MB

Last updated

over 6 years ago

docker pull sergiomtzlosa/lolcode