chore: pain

This commit is contained in:
badPointer 2023-03-02 13:23:51 +00:00
parent f5cc3f46b8
commit 3579d7bf83

View file

@ -37,16 +37,14 @@ RUN wget -O phive.phar https://phar.io/releases/phive.phar;
rm phive.phar.asc rm phive.phar.asc
# Download the latest version of ncc (Nosial Code Compiler) # Download the latest version of ncc (Nosial Code Compiler)
RUN git clone https://git.n64.cc/nosial/ncc.git RUN git clone https://git.n64.cc/nosial/ncc.git; \
WORKDIR /tmp/ncc cd ncc; make redist
RUN make redist
# #
# Main stage: Copies downloaded files and installs all # Main stage: Copies downloaded files and installs all
# #
FROM php:8.1-alpine FROM php:8.1-alpine
WORKDIR /tmp
# Copy downloaded files # Copy downloaded files
COPY --from=builder /tmp/. . COPY --from=builder /tmp/. .
@ -59,5 +57,4 @@ RUN chmod +x phive.phar;
phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C; \ phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C; \
# ... and ncc. # ... and ncc.
php /tmp/ncc/build/src/INSTALL --auto --install-composer; \ cd ncc; php build/src/INSTALL --auto --install-composer; cd ..; rm -rf ./*
rm -rf /tmp/*