FROM ubuntu:22.04 RUN apt-get update && apt-get install -y \ openssh-server \ dante-server \ curl \ && rm -rf /var/lib/apt/lists/* # Create required dirs RUN mkdir -p /var/run/sshd # Copy configs with root access COPY ssh-config/sshd_config /etc/ssh/sshd_config RUN chmod 600 /etc/ssh/sshd_config # Set user to root (important!) # Copy rest of the app WORKDIR /app COPY . /app RUN chmod +x /app/entrypoint.sh RUN chmod -R 777 /app USER root EXPOSE 22 1080 ENTRYPOINT ["/app/entrypoint.sh"]