Update Dockerfile
This commit is contained in:
40
Dockerfile
40
Dockerfile
@@ -1,6 +1,7 @@
|
|||||||
FROM ubuntu:25.10
|
FROM ubuntu:25.10
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
ENV MAGICK_WARNINGS=0
|
||||||
|
|
||||||
RUN echo "deb http://ubuntu.ethz.ch/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list && \
|
RUN echo "deb http://ubuntu.ethz.ch/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list && \
|
||||||
echo "deb http://ubuntu.ethz.ch/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
|
echo "deb http://ubuntu.ethz.ch/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
|
||||||
@@ -65,32 +66,27 @@ RUN IMAGICK_URL=$(curl -s https://api.github.com/repos/ImageMagick/ImageMagick/r
|
|||||||
| jq -r '.tarball_url') && \
|
| jq -r '.tarball_url') && \
|
||||||
wget -qO- "$IMAGICK_URL" | tar xz && \
|
wget -qO- "$IMAGICK_URL" | tar xz && \
|
||||||
cd ImageMagick-* && \
|
cd ImageMagick-* && \
|
||||||
sed -i '/static void MagickPNGWarningHandler/,/}/ { \
|
|
||||||
/va_list/ a\
|
|
||||||
/* ignore non-D50 iCCP profile warnings */\
|
|
||||||
if (strstr(format,"iCCP: profile") && strstr(format,"PCS illuminant is not D50")) return;\
|
|
||||||
' coders/png.c && \
|
|
||||||
./configure --prefix=/usr/local \
|
./configure --prefix=/usr/local \
|
||||||
--with-bzlib=yes \
|
--with-bzlib=yes \
|
||||||
--with-fontconfig=yes \
|
--with-fontconfig=yes \
|
||||||
--with-freetype=yes \
|
--with-freetype=yes \
|
||||||
--with-gslib=yes \
|
--with-gslib=yes \
|
||||||
--with-gvc=yes \
|
--with-gvc=yes \
|
||||||
--with-jpeg=yes \
|
--with-jpeg=yes \
|
||||||
--with-jp2=yes \
|
--with-jp2=yes \
|
||||||
--with-png=yes \
|
--with-png=yes \
|
||||||
--with-tiff=yes \
|
--with-tiff=yes \
|
||||||
--with-xml=yes \
|
--with-xml=yes \
|
||||||
--with-gs-font-dir=yes && \
|
--with-gs-font-dir=yes && \
|
||||||
make -j"$(nproc)" && \
|
make -j$(nproc) && \
|
||||||
make install && \
|
make install && \
|
||||||
ldconfig /usr/local/lib && \
|
ldconfig /usr/local/lib/ && \
|
||||||
cd / && rm -rf ImageMagick-*
|
cd / && rm -rf ImageMagick-*
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
apt-get install -y nodejs && \
|
&& apt-get install -y nodejs \
|
||||||
npm install -g npm@latest && \
|
&& npm install -g npm@latest \
|
||||||
rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY src/297969n.osz /app/danser/songs/
|
COPY src/297969n.osz /app/danser/songs/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user