chore: fuck(TM)
This commit is contained in:
parent
62a66fb4c4
commit
f5cc3f46b8
1 changed files with 8 additions and 9 deletions
17
Dockerfile
17
Dockerfile
|
@ -23,8 +23,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM php:8.1 AS builder
|
FROM php:8.1 AS builder
|
||||||
RUN mkdir -p /usr/src
|
WORKDIR /tmp
|
||||||
WORKDIR /usr/src
|
|
||||||
|
|
||||||
# Install some stuff the default image doesn't come with
|
# Install some stuff the default image doesn't come with
|
||||||
RUN apt update -yqq; \
|
RUN apt update -yqq; \
|
||||||
|
@ -38,18 +37,19 @@ 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
|
||||||
cd ncc; \
|
WORKDIR /tmp/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 /usr/src/. .
|
COPY --from=builder /tmp/. .
|
||||||
|
|
||||||
# Install phive...
|
# Install phive...
|
||||||
RUN chmod +x phive.phar; \
|
RUN chmod +x phive.phar; \
|
||||||
|
@ -59,6 +59,5 @@ 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.
|
||||||
cd ncc; \
|
php /tmp/ncc/build/src/INSTALL --auto --install-composer; \
|
||||||
php build/src/INSTALL --auto --install-composer; \
|
rm -rf /tmp/*
|
||||||
cd .. && rm -rf ./*
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue