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.
- Loading branch information
Showing
5 changed files
with
45 additions
and
36 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
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
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,19 +1,23 @@ | ||
FROM alpine:3.12 as builder | ||
|
||
RUN mkdir /empty | ||
|
||
ENV PY_VERSION=3.7-v7.3.2 VERSION=bde83aa | ||
|
||
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 \ | ||
RUN curl https://downloads.python.org/pypy/pypy$PY_VERSION-src.tar.bz2 \ | ||
| tar xj | ||
|
||
RUN curl -L https://github.com/primo-ppcg/fish-jit/tarball/cee89b7 \ | ||
RUN curl -L https://github.com/primo-ppcg/fish-jit/tarball/$VERSION \ | ||
| tar xz | ||
|
||
RUN LDFLAGS=-static python pypy3.7-v7.3.2-src/rpython/bin/rpython \ | ||
--lto primo-ppcg-fish-jit-cee89b7/fish-jit.py \ | ||
RUN LDFLAGS=-static python pypy$PY_VERSION-src/rpython/bin/rpython \ | ||
--lto primo-ppcg-fish-jit-$VERSION/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;"] | ||
COPY --from=0 /empty /proc | ||
COPY --from=0 /empty /tmp | ||
COPY --from=0 /fish-jit-c /usr/bin/fish |