forked from code-golf/code-golf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/fish'
- Loading branch information
Showing
3 changed files
with
38 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
FROM codegolf/lang-python | ||
FROM alpine:3.12 as builder | ||
|
||
COPY fish /usr/bin/ | ||
RUN apk add --no-cache curl gcc linux-headers make musl-dev python2 | ||
|
||
RUN curl https://downloads.python.org/pypy/pypy3.7-v7.3.2-src.tar.bz2 \ | ||
| tar xj | ||
|
||
RUN curl -L https://github.com/primo-ppcg/fish-jit/tarball/cee89b7 \ | ||
| tar xz | ||
|
||
RUN LDFLAGS=-static python pypy3.7-v7.3.2-src/rpython/bin/rpython \ | ||
--lto primo-ppcg-fish-jit-cee89b7/fish-jit.py \ | ||
&& strip fish-jit-c | ||
|
||
FROM scratch | ||
|
||
COPY --from=0 fish-jit-c /usr/bin/fish | ||
|
||
ENTRYPOINT ["/usr/bin/fish", "-c", "1n'.'o0n;"] |
Oops, something went wrong.