docker build -t whatever .Some obsession with smaller images?
Alpine is only 10MB Debians Fat…
Observe Dan’s Rule No 32:
FROM debian:bookworm
#Install SSH Server
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
openssh-server \
libcap2-bin \
curl wget sudo less
#Configure SSH (Cant run as Daemon if this doenst exit)
RUN mkdir /var/run/sshd
RUN cp /sbin/getcap /usr/bin/getcap
# --- System Configuration --------
#Add a User
RUN useradd -ms /bin/bash cueh && echo cueh:cueh | chpasswd
COPY .root.txt /root/root.txt
RUN chmod 600 /root/root.txt
# ----- Cusom config
RUN apt install -y --no-install-recommends ftp
COPY sudoers /etc/sudoers
# PORTS AND BASIC COMMAND
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]

services:
ssh:
build:
context: .
ports:
- "22:22"
services:
web:
build:
context: webservice
ports:
- "80:80"
restart: unless-stopped
volumes_from:
- ssh
ssh:
build:
context: RootBox
ports:
- "22:22"
restart: unless-stopped
volumes:
- /home/dev
FROM php:8.5-apache
ADD --chown=www-data:www-data html /var/www/html
services:
web:
build:
context: [DIR]
ports:
- 80:80
ssh:
build:
context: [DIR]
ports:
- 22:22
services:
web:
build:
context: webservice
ports:
- "80:80"
restart: unless-stopped
volumes_from:
- ssh
ssh:
build:
context: RootBox
ports:
- "22:22"
restart: unless-stopped
volumes:
- /home/dev