Dockerfile fails to build locally #2925

Closed
opened 2025-12-21 21:20:36 +01:00 by backuprepo · 4 comments
Owner

Originally created by @Artiume on GitHub (Apr 12, 2021).

Describe the bug

pulling Unstable and attempting to build is having failures.

System (please complete the following information):

  • OS: [e.g. Debian, Windows] Debian buster
  • Virtualization: [e.g. Docker, KVM, LXC] Docker
  • Jellyfin Version: [e.g. 10.4.3, nightly 20191231] unstable-20210412

To Reproduce

  1. git clone https://github.com/jellyfin/jellyfin
  2. cd jellyfin
  3. sudo docker build -t test/test .

Expected behavior

Build properly

Logs

Sending build context to Docker daemon  10.74MB

Step 1/27 : ARG DOTNET_VERSION=5.0
Step 2/27 : FROM node:alpine as web-builder
 ---> 7ddc154413f5
Step 3/27 : ARG JELLYFIN_WEB_VERSION=master
 ---> Running in 1947493f723d
Removing intermediate container 1947493f723d
 ---> 1da6fd8760fe
Step 4/27 : RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf -  && cd jellyfin-web-*  && npm ci --no-audit  && mv dist /dist
 ---> Running in c52ddc7a4fac
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
(1/66) Upgrading musl (1.1.24-r2 -> 1.1.24-r3)
(2/66) Installing fakeroot (1.24-r0)
(3/66) Installing sudo (1.8.31-r1)
(4/66) Installing libcap (2.27-r0)
(5/66) Installing pax-utils (1.2.4-r0)
(6/66) Installing openssl (1.1.1k-r0)
(7/66) Installing libattr (2.4.48-r0)
(8/66) Installing attr (2.4.48-r0)
(9/66) Installing libacl (2.2.53-r0)
(10/66) Installing tar (1.32-r2)
(11/66) Installing pkgconf (1.6.3-r0)
(12/66) Installing patch (2.7.6-r6)
(13/66) Installing lzip (1.21-r0)
(14/66) Installing ca-certificates (20191127-r2)
(15/66) Installing nghttp2-libs (1.40.0-r1)
(16/66) Installing libcurl (7.67.0-r3)
(17/66) Installing curl (7.67.0-r3)
(18/66) Installing abuild (3.5.0-r1)
Executing abuild-3.5.0-r1.pre-install
(19/66) Installing binutils (2.33.1-r0)
(20/66) Installing libmagic (5.37-r1)
(21/66) Installing file (5.37-r1)
(22/66) Installing gmp (6.1.2-r1)
(23/66) Installing isl (0.18-r0)
(24/66) Installing libgomp (9.3.0-r0)
(25/66) Installing libatomic (9.3.0-r0)
(26/66) Installing mpfr4 (4.0.2-r1)
(27/66) Installing mpc1 (1.1.0-r1)
(28/66) Installing gcc (9.3.0-r0)
(29/66) Installing musl-dev (1.1.24-r3)
(30/66) Installing libc-dev (0.7.2-r0)
(31/66) Installing g++ (9.3.0-r0)
(32/66) Installing make (4.2.1-r2)
(33/66) Installing fortify-headers (1.1-r0)
(34/66) Installing build-base (0.5-r1)
(35/66) Installing expat (2.2.9-r1)
(36/66) Installing pcre2 (10.34-r1)
(37/66) Installing git (2.24.4-r0)
(38/66) Installing alpine-sdk (1.0-r0)
(39/66) Installing m4 (1.4.18-r1)
(40/66) Installing libbz2 (1.0.8-r1)
(41/66) Installing perl (5.30.3-r0)
(42/66) Installing perl-error (0.17028-r0)
(43/66) Installing perl-git (2.24.4-r0)
(44/66) Installing git-perl (2.24.4-r0)
(45/66) Installing autoconf (2.69-r2)
(46/66) Installing automake (1.16.1-r0)
(47/66) Installing libxau (1.0.9-r0)
(48/66) Installing libbsd (0.10.0-r0)
(49/66) Installing libxdmcp (1.1.3-r0)
(50/66) Installing libxcb (1.13.1-r0)
(51/66) Installing libx11 (1.6.12-r0)
(52/66) Installing gifsicle (1.92-r0)
(53/66) Installing libpng (1.6.37-r1)
(54/66) Installing zlib-dev (1.2.11-r3)
(55/66) Installing libpng-dev (1.6.37-r1)
(56/66) Installing ncurses-terminfo-base (6.1_p20200118-r4)
(57/66) Installing ncurses-libs (6.1_p20200118-r4)
(58/66) Installing readline (8.0.1-r0)
(59/66) Installing bash (5.0.11-r1)
Executing bash-5.0.11-r1.post-install
(60/66) Installing libltdl (2.4.6-r7)
(61/66) Installing libtool (2.4.6-r7)
(62/66) Installing nasm (2.14.02-r0)
(63/66) Installing libffi (3.2.1-r6)
(64/66) Installing gdbm (1.13-r1)
(65/66) Installing sqlite-libs (3.30.1-r2)
(66/66) Installing python2 (2.7.18-r0)
Executing busybox-1.31.1-r9.trigger
Executing ca-certificates-20191127-r2.trigger
OK: 289 MiB in 81 packages
#[91m  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0#[0m#[91m
100   129  100   129    0     0    645      0 --:--:-- --:--:-- --:--:--   645
#[0m#[91m
100 2272k    0 2272k    0     0  2815k      0 --:--:-- --:--:-- --:--:-- 2815k#[0m#[91m
100 4041k    0 4041k    0     0  4013k      0 --:--:--  0:00:01 --:--:-- 8846k
#[0m
added 1571 packages in 27s
#[91mnpm #[0m#[91mnotice 
npm notice#[0m#[91m New minor version of npm available! 7.0.8 -> 7.9.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.9.0>
npm #[0m#[91mnotice Run `npm install -g npm@7.9.0` to update!
npm notice#[0m#[91m 
#[0m#[91mmv: can't rename 'dist': No such file or directory
#[0mThe command '/bin/sh -c apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf -  && cd jellyfin-web-*  && npm ci --no-audit  && mv dist /dist' returned a non-zero code: 1
Originally created by @Artiume on GitHub (Apr 12, 2021). **Describe the bug** <!-- A clear and concise description of what the bug is. --> pulling Unstable and attempting to build is having failures. **System (please complete the following information):** - OS: [e.g. Debian, Windows] Debian buster - Virtualization: [e.g. Docker, KVM, LXC] Docker - Jellyfin Version: [e.g. 10.4.3, nightly 20191231] unstable-20210412 **To Reproduce** <!-- Steps to reproduce the behavior: --> 1. git clone https://github.com/jellyfin/jellyfin 2. cd jellyfin 3. sudo docker build -t test/test . **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Build properly **Logs** ``` Sending build context to Docker daemon 10.74MB Step 1/27 : ARG DOTNET_VERSION=5.0 Step 2/27 : FROM node:alpine as web-builder ---> 7ddc154413f5 Step 3/27 : ARG JELLYFIN_WEB_VERSION=master ---> Running in 1947493f723d Removing intermediate container 1947493f723d ---> 1da6fd8760fe Step 4/27 : RUN apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - && cd jellyfin-web-* && npm ci --no-audit && mv dist /dist ---> Running in c52ddc7a4fac fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz (1/66) Upgrading musl (1.1.24-r2 -> 1.1.24-r3) (2/66) Installing fakeroot (1.24-r0) (3/66) Installing sudo (1.8.31-r1) (4/66) Installing libcap (2.27-r0) (5/66) Installing pax-utils (1.2.4-r0) (6/66) Installing openssl (1.1.1k-r0) (7/66) Installing libattr (2.4.48-r0) (8/66) Installing attr (2.4.48-r0) (9/66) Installing libacl (2.2.53-r0) (10/66) Installing tar (1.32-r2) (11/66) Installing pkgconf (1.6.3-r0) (12/66) Installing patch (2.7.6-r6) (13/66) Installing lzip (1.21-r0) (14/66) Installing ca-certificates (20191127-r2) (15/66) Installing nghttp2-libs (1.40.0-r1) (16/66) Installing libcurl (7.67.0-r3) (17/66) Installing curl (7.67.0-r3) (18/66) Installing abuild (3.5.0-r1) Executing abuild-3.5.0-r1.pre-install (19/66) Installing binutils (2.33.1-r0) (20/66) Installing libmagic (5.37-r1) (21/66) Installing file (5.37-r1) (22/66) Installing gmp (6.1.2-r1) (23/66) Installing isl (0.18-r0) (24/66) Installing libgomp (9.3.0-r0) (25/66) Installing libatomic (9.3.0-r0) (26/66) Installing mpfr4 (4.0.2-r1) (27/66) Installing mpc1 (1.1.0-r1) (28/66) Installing gcc (9.3.0-r0) (29/66) Installing musl-dev (1.1.24-r3) (30/66) Installing libc-dev (0.7.2-r0) (31/66) Installing g++ (9.3.0-r0) (32/66) Installing make (4.2.1-r2) (33/66) Installing fortify-headers (1.1-r0) (34/66) Installing build-base (0.5-r1) (35/66) Installing expat (2.2.9-r1) (36/66) Installing pcre2 (10.34-r1) (37/66) Installing git (2.24.4-r0) (38/66) Installing alpine-sdk (1.0-r0) (39/66) Installing m4 (1.4.18-r1) (40/66) Installing libbz2 (1.0.8-r1) (41/66) Installing perl (5.30.3-r0) (42/66) Installing perl-error (0.17028-r0) (43/66) Installing perl-git (2.24.4-r0) (44/66) Installing git-perl (2.24.4-r0) (45/66) Installing autoconf (2.69-r2) (46/66) Installing automake (1.16.1-r0) (47/66) Installing libxau (1.0.9-r0) (48/66) Installing libbsd (0.10.0-r0) (49/66) Installing libxdmcp (1.1.3-r0) (50/66) Installing libxcb (1.13.1-r0) (51/66) Installing libx11 (1.6.12-r0) (52/66) Installing gifsicle (1.92-r0) (53/66) Installing libpng (1.6.37-r1) (54/66) Installing zlib-dev (1.2.11-r3) (55/66) Installing libpng-dev (1.6.37-r1) (56/66) Installing ncurses-terminfo-base (6.1_p20200118-r4) (57/66) Installing ncurses-libs (6.1_p20200118-r4) (58/66) Installing readline (8.0.1-r0) (59/66) Installing bash (5.0.11-r1) Executing bash-5.0.11-r1.post-install (60/66) Installing libltdl (2.4.6-r7) (61/66) Installing libtool (2.4.6-r7) (62/66) Installing nasm (2.14.02-r0) (63/66) Installing libffi (3.2.1-r6) (64/66) Installing gdbm (1.13-r1) (65/66) Installing sqlite-libs (3.30.1-r2) (66/66) Installing python2 (2.7.18-r0) Executing busybox-1.31.1-r9.trigger Executing ca-certificates-20191127-r2.trigger OK: 289 MiB in 81 packages #[91m % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0#[0m#[91m 100 129 100 129 0 0 645 0 --:--:-- --:--:-- --:--:-- 645 #[0m#[91m 100 2272k 0 2272k 0 0 2815k 0 --:--:-- --:--:-- --:--:-- 2815k#[0m#[91m 100 4041k 0 4041k 0 0 4013k 0 --:--:-- 0:00:01 --:--:-- 8846k #[0m added 1571 packages in 27s #[91mnpm #[0m#[91mnotice npm notice#[0m#[91m New minor version of npm available! 7.0.8 -> 7.9.0 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.9.0> npm #[0m#[91mnotice Run `npm install -g npm@7.9.0` to update! npm notice#[0m#[91m #[0m#[91mmv: can't rename 'dist': No such file or directory #[0mThe command '/bin/sh -c apk add curl git zlib zlib-dev autoconf g++ make libpng-dev gifsicle alpine-sdk automake libtool make gcc musl-dev nasm python && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - && cd jellyfin-web-* && npm ci --no-audit && mv dist /dist' returned a non-zero code: 1 ```
backuprepo 2025-12-21 21:20:36 +01:00
  • closed this issue
  • added the
    bug
    stale
    labels
Author
Owner

@Shadowghost commented on GitHub (Apr 12, 2021):

Seems like we need to switch the tag of the web builder image to lts-alpine since just alpine now references Node 15 and NPM 7.

@Shadowghost commented on GitHub (Apr 12, 2021): Seems like we need to switch the tag of the web builder image to `lts-alpine` since just `alpine` now references Node 15 and NPM 7.
Author
Owner

@Artiume commented on GitHub (Apr 12, 2021):

i tried node:lts-alpine and still failed.

@Artiume commented on GitHub (Apr 12, 2021): i tried node:lts-alpine and still failed.
Author
Owner

@Artiume commented on GitHub (Apr 20, 2021):

Adding npm run build:production fixed my build issue

@Artiume commented on GitHub (Apr 20, 2021): Adding npm run build:production fixed my build issue
Author
Owner

@stale[bot] commented on GitHub (Aug 21, 2021):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Aug 21, 2021): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#2925
No description provided.