From b7ae9a15511365d33d50729f85f415c6a6133fbd Mon Sep 17 00:00:00 2001 From: Manuel Date: Sat, 5 Jun 2021 23:35:49 +0200 Subject: [PATCH] Change to high performance brainfuck interpreter --- languages/brainfuck/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/languages/brainfuck/Dockerfile b/languages/brainfuck/Dockerfile index 34b74b3..9f865ca 100644 --- a/languages/brainfuck/Dockerfile +++ b/languages/brainfuck/Dockerfile @@ -1,12 +1,13 @@ FROM alpine AS build -COPY bf.cpp . -RUN apk add --no-cache g++ && \ - g++ bf.cpp -o bf +WORKDIR /tmp/bf +RUN apk add --no-cache musl-dev gcc make git && \ + git clone https://github.com/rdebath/Brainfuck.git . && \ + cd tritium && \ + make FROM alpine -LABEL author="1Computer1" +LABEL author="SunRed" -RUN apk add --no-cache libstdc++ -COPY --from=build bf /usr/local/bin/ +COPY --from=build /tmp/bf/tritium/bfi.out /usr/local/bin/bf COPY run.sh /var/run/