Skip to content

Instantly share code, notes, and snippets.

@notwa

notwa/Dockerfile Secret

Created August 25, 2022 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notwa/3ee82067b71672e73a48c7c87aa04dd0 to your computer and use it in GitHub Desktop.
Save notwa/3ee82067b71672e73a48c7c87aa04dd0 to your computer and use it in GitHub Desktop.
kuroko on alpine linux
ARG KUROKO_COMMIT=81c570686b70253da521cb3a91f1cd01a4a72f29
FROM alpine:3.16.2
RUN apk add --no-cache gcc make musl-dev
ARG KUROKO_COMMIT
RUN wget "https://github.com/kuroko-lang/kuroko/archive/$KUROKO_COMMIT.tar.gz" \
&& tar zxf "$KUROKO_COMMIT.tar.gz" \
&& mv "kuroko-$KUROKO_COMMIT" kuroko
RUN cd kuroko \
&& sed -i '/bind(gamma)/{N;N;d;}' src/modules/module_math.c \
&& sed -i '/MATH_ONE(gamma)/d' src/modules/module_math.c
RUN cd kuroko && CFLAGS="-O2 -Wno-misleading-indentation" make
RUN cd kuroko && make test
@notwa
Copy link
Author

notwa commented Jul 17, 2023

probably none of this is necessary anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment