Yelp/dumb-init

Alphine 3.16 No longer accepts dumb-init ?

tistisman opened this issue · 5 comments

RUN apk add dumb-init

Alphine Doesn't work in node:alphine 3.16

FROM node:lts-alpine3.16

RUN apk add dumb-init
RUN npm install -g npm@8.13.0
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ENV PORT=8080
EXPOSE 8080
USER node
CMD ["dumb-init" ,"node", "index.js" ]  
 [2/7] RUN apk add dumb-init:
#5 0.384 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
#5 0.854 139826783681352:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
#5 0.856 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/main: Permission denied
#5 0.856 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/main: No such file or directory
#5 0.856 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
#5 1.398 139826783681352:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
#5 1.400 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/community: Permission denied
#5 1.400 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/community: No such file or directory
#5 1.400 ERROR: unable to select packages:
#5 1.401   dumb-init (no such package):
#5 1.401     required by: world[dumb-init]
executor failed running [/bin/sh -c apk add dumb-init]: exit code: 1

alphine isn't a thing -- show your actual commands and outputs -- it works fine for me

alphine isn't a thing -- show your actual commands and outputs -- it works fine for me
@asottile
Updated the Comment with my Docker Commands in it

this has nothing to do with dumb-init -- if you read the error message apk can't reach the package registry (presumably due to whatever corporate proxy or internet firewall which is breaking ssl) -- you'd receive the same error message with any other package

I see thank you