meuse
meuse copied to clipboard
issues with Dockerfile upgrade to jdk:17
encountered this error message from running $ docker build .
:
Step 10/13 : RUN apt-get update && apt-get -y upgrade && apt-get install -y git
---> Running in 107a7a75fb08
/bin/sh: apt-get: command not found
It's confusing because the image it was using before (openjdk:11
) did that step just fine, I guess they changed it.
I found another image, openjdk:slim-bullseye
that works. "bullseye" is debian release code name. not sure if "slim" is worth much vs the fat one but it was the first one I got to work.
Initially I tried to do openjdk:17-alpine
but that had a lot of differences (apk
vs apt-get
, need to install openssh
, different command line options for useradd
/groupadd
and I abandoned that effort).
Hello,
I pushed a new Dockerfile which now build successfully.
thanks!