I am moving my container from debian based openjdk:11-jre-slim-buster image to alpine based eclipse-temurin:11-jre

my application enables printing via cups as one of the features, the following packages is a snippet from my dockerfile with debian operating systen

RUN apt-get update && apt-get install -y 
 curl 
 nano 
 sqlite3 
 libsqlite3-dev 
 cups 
 cups-client 
 iputils-ping 
 lpr

the cups service is up here post deployment with debian os

curl -v http://localhost:631/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 631 (#0)
> GET / HTTP/1.1
> Host: localhost:631
> User-Agent: curl/7.64.0
> Accept: */*
> 
< HTTP/1.1 200 OK

I am staring the cups service before my application starts via a script

#!/bin/bash

echo "Starting application"

# necessary permission to unrelated directories 

service cups restart

/etc/init.d/lpd start



# start application


I have made changes to the dockerfile as well as my application startup script when moving to alpine. following are the changes


RUN apk update && apk add --no-cache 
        curl 
        nano 
        sqlite 
        cups 
          iputils 
        cups-client 
    openrc 

startup script

#!/bin/sh

echo "Starting application"

# necessary permission to unrelated directories 

rc-service cupsd restart

rc-update add cupsd boot

the application comes up stating cups is already running, but the cups service is unable to setup printer or run any of the print commands

Starting application
 * WARNING: cupsd is already starting

I am referring this doc for setup
while trying to hit the cups endpoint I get this

# curl -v http://localhost:631/
 * Host localhost:631 was resolved.
 * IPv6: ::1
 * IPv4: 127.0.0.1
 *   Trying 127.0.0.1:631...
 * connect to 127.0.0.1 port 631 from 127.0.0.1 port 51110 failed: Connection refused
 * 

how can I resolve this, do I need to install more packages to run this, I could’t find an alternative package to lpd in alpine