Add emojicode image
This commit is contained in:
parent
bbb8dd9646
commit
50e1a663c8
2 changed files with 59 additions and 0 deletions
57
languages/emojicode/Dockerfile
Normal file
57
languages/emojicode/Dockerfile
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
FROM debian:stable-slim as build
|
||||||
|
|
||||||
|
ENV CC clang-8
|
||||||
|
ENV CXX clang++-8
|
||||||
|
ENV DEBIAN_FRONTEND=nontinteractive
|
||||||
|
ENV PYTHONIOENCODING utf8
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
gnupg \
|
||||||
|
wget && \
|
||||||
|
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list && \
|
||||||
|
echo "deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" >> /etc/apt/sources.list && \
|
||||||
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
clang-8 \
|
||||||
|
cmake \
|
||||||
|
libstdc++-8-dev \
|
||||||
|
libclang1-8 \
|
||||||
|
libclang-8-dev \
|
||||||
|
libclang-common-8-dev \
|
||||||
|
libfuzzer-8-dev \
|
||||||
|
libllvm8 \
|
||||||
|
libncurses-dev \
|
||||||
|
libz-dev \
|
||||||
|
llvm-8 \
|
||||||
|
llvm-8-dev \
|
||||||
|
llvm-runtime \
|
||||||
|
ninja-build \
|
||||||
|
python3 \
|
||||||
|
rsync \
|
||||||
|
git && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
mkdir /tmp/emojicode/
|
||||||
|
|
||||||
|
WORKDIR /tmp/emojicode/
|
||||||
|
RUN git clone https://github.com/emojicode/emojicode.git .
|
||||||
|
RUN cmake . -GNinja && \
|
||||||
|
ninja && \
|
||||||
|
ninja magicinstall
|
||||||
|
|
||||||
|
|
||||||
|
FROM debian:stable-slim
|
||||||
|
LABEL author="SunRed"
|
||||||
|
|
||||||
|
ENV CXX=g++
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y ${CXX} && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
apt-get autoclean -y
|
||||||
|
|
||||||
|
COPY --from=build /usr/local/bin /usr/local/bin
|
||||||
|
COPY --from=build /usr/local/EmojicodePackages /usr/local/EmojicodePackages
|
||||||
|
COPY run.sh /var/run/
|
2
languages/emojicode/run.sh
Normal file
2
languages/emojicode/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
cat > program.emojic
|
||||||
|
emojicodec program.emojic -o program && ./program
|
Loading…
Reference in a new issue