-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node:lts-slim
does not include OpenSSL as it is now based on bookworm because of upstream change in debian:bookworm-slim
image
#1919
Comments
BorePlusPlus
added a commit
to kozjansko-geekalisce/stemplaj-se
that referenced
this issue
Jul 2, 2023
Save the bytes! Also make builds without cached layers faster. And images lighter to move around. Basic stuff like: - using slim image - adding node_modules to .dockerignore Some aditional changes due to: - New slim debian image (bookworm) no longer bundles libssl, so it has to be install explicitly as prisma depends on it. See: nodejs/docker-node#1919 - Bookworm uses different version of libssl 3.0.x rather than 1.1.x which necesatates update to prisma schema. - Prisma client itself has to be updated to support libssl 3.0.x. Question: Should we pin the OS version to avoid such surprises in the future? PRO: Consistent OS experience. CON: OS version has to be bumped manually on new release. Resources - Some recommendations regarding images: https://snyk.io/blog/choosing-the-best-node-js-docker-image/ - Why dockerignore: https://codefresh.io/blog/not-ignore-dockerignore-2/ New image size: 648MB Original image size: 1.62GB
BorePlusPlus
added a commit
to kozjansko-geekalisce/stemplaj-se
that referenced
this issue
Jul 5, 2023
Save the bytes! Also make builds without cached layers faster. And images lighter to move around. Basic stuff like: - using slim image - adding node_modules to .dockerignore Some aditional changes due to: - New slim debian image (bookworm) no longer bundles libssl, so it has to be install explicitly as prisma depends on it. See: nodejs/docker-node#1919 - Bookworm uses different version of libssl 3.0.x rather than 1.1.x which necesatates update to prisma schema. - Prisma client itself has to be updated to support libssl 3.0.x. Question: Should we pin the OS version to avoid such surprises in the future? PRO: Consistent OS experience. CON: OS version has to be bumped manually on new release. Resources - Some recommendations regarding images: https://snyk.io/blog/choosing-the-best-node-js-docker-image/ - Why dockerignore: https://codefresh.io/blog/not-ignore-dockerignore-2/ New image size: 648MB Original image size: 1.62GB
2 tasks
samhwang
added a commit
to viet-aus-it/vait-discord-bot
that referenced
this issue
Mar 7, 2024
This is a known issue in Docker Node image nodejs/docker-node#1919.
samhwang
added a commit
to viet-aus-it/vait-discord-bot
that referenced
this issue
Mar 7, 2024
This is a known issue in Docker Node image nodejs/docker-node#1919.
samhwang
added a commit
to viet-aus-it/vait-discord-bot
that referenced
this issue
Mar 7, 2024
* build: update node version and unpin debian version * build: install openssl in node-slim image This is a known issue in Docker Node image nodejs/docker-node#1919.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Expected Behavior
node:lts-bookworm-slim
/node:lts-slim
has OpenSSL v3 includedCurrent Behavior
node:lts-bookworm-slim
/node:lts-slim
does not include any version of OpenSSLPossible Solution
I'm not sure if this was intentional or expected, I could not find any communication about this.
A solution would be to include OpenSSL v3 in the image (
RUN apt-get install -y openssl
).Steps to Reproduce
Additional Information
For people that are using
node:lts-slim
(and its variants) and depended on OpenSSL to be present, this is an unexpected change. (I guess that most people, like Prisma users, also probably didn't know that they depended on OpenSSL until now, as it was working before, because it was included)node:lts-bookworm-slim
Dockerfile base image isFROM debian:bookworm-slim
https://github.com/nodejs/docker-node/blob/main/18/bookworm-slim/Dockerfile
The official docker image for Debian is where the change comes from
Same findings on
debuerreotype/docker-debian-artifacts
repositorylibssl1.1:amd64 1.1.1n-0+deb11u5
is mentioned.The
node:lts-bookworm
(alias of node:lts) does not have this issue since it is based onFROM buildpack-deps:bookworm
https://github.com/nodejs/docker-node/blob/main/18/bookworm/Dockerfile
Related issues:
#1915
#1916
prisma/prisma#19729
The text was updated successfully, but these errors were encountered: