-
Notifications
You must be signed in to change notification settings - Fork 5
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
2 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# NOTE: This file is generated automatically via template.py. Do not edit manually! | ||
|
||
|
||
FROM alpine:3.18 as base | ||
|
||
RUN mkdir -p /compilers/ps1/gcc2.8.1-psx | ||
|
||
RUN wget -O gcc-2.8.1-psx.tar.gz "https://github.com/decompals/old-gcc/releases/download/0.9/gcc-2.8.1-psx.tar.gz" | ||
RUN tar xvzf gcc-2.8.1-psx.tar.gz -C /compilers/ps1/gcc2.8.1-psx | ||
|
||
ARG MASPSX_HASH=8808c7383f819d69ddff9550d8bc1af3fade7427 | ||
|
||
RUN wget -O maspsx.zip https://github.com/mkst/maspsx/archive/${MASPSX_HASH}.zip | ||
RUN unzip maspsx.zip | ||
RUN cp -r maspsx-${MASPSX_HASH} /compilers/ps1/gcc2.8.1-psx/maspsx | ||
|
||
RUN echo '#!/bin/bash' >> as | ||
RUN echo 'python3 $(dirname -- $0)/maspsx/maspsx.py --run-assembler -I${COMPILER_DIR} $@' >> as | ||
RUN cp as /compilers/ps1/gcc2.8.1-psx/ | ||
|
||
RUN chown -R root:root /compilers/ps1/gcc2.8.1-psx/ | ||
RUN chmod +x /compilers/ps1/gcc2.8.1-psx/* | ||
|
||
|
||
FROM scratch as release | ||
|
||
COPY --from=base /compilers /compilers |
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