mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-08 03:59:30 +00:00
Fixed (hopefully) frankenphp dockerfile
This commit is contained in:
parent
2019f44395
commit
1aedcc056f
1 changed files with 27 additions and 7 deletions
|
|
@ -13,13 +13,33 @@ RUN apt-get update && apt-get -y install \
|
||||||
zip \
|
zip \
|
||||||
&& apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*;
|
&& apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*;
|
||||||
|
|
||||||
# Install node and yarn
|
RUN set -eux; \
|
||||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
# Prepare keyrings directory
|
||||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
|
mkdir -p /etc/apt/keyrings; \
|
||||||
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
|
\
|
||||||
apt-get update && apt-get install -y \
|
# Import Yarn GPG key
|
||||||
nodejs yarn \
|
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg \
|
||||||
&& apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*
|
| tee /etc/apt/keyrings/yarn.gpg >/dev/null; \
|
||||||
|
chmod 644 /etc/apt/keyrings/yarn.gpg; \
|
||||||
|
\
|
||||||
|
# Add Yarn repo with signed-by
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian stable main" \
|
||||||
|
| tee /etc/apt/sources.list.d/yarn.list; \
|
||||||
|
\
|
||||||
|
# Run NodeSource setup script (unchanged)
|
||||||
|
curl -sL https://deb.nodesource.com/setup_20.x | bash -; \
|
||||||
|
\
|
||||||
|
# Install Node.js + Yarn
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
nodejs \
|
||||||
|
yarn; \
|
||||||
|
\
|
||||||
|
# Cleanup
|
||||||
|
apt-get -y autoremove; \
|
||||||
|
apt-get clean autoclean; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# Install PHP
|
# Install PHP
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue