mgm-image/Dockerfile
Adam Štrauch ec7c99328c
All checks were successful
Build a dev image / build (push) Successful in 26s
Docker cli only
2025-09-28 17:46:38 +02:00

39 lines
915 B
Docker

FROM alpine:3.22
RUN apk update && apk upgrade && apk add --no-cache \
git \
docker-cli \
docker-cli-compose \
bash \
fish \
zsh \
wget \
curl \
htop \
vim \
nano \
tmux \
openssh-server \
iproute2
# Download ttyd
RUN wget -O /usr/local/bin/ttyd https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 && chmod +x /usr/local/bin/ttyd
# Configure SSH
RUN mkdir -p /var/run/sshd && \
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
# Copy entrypoint script
COPY entrypoint.sh /app/
COPY service.ssh.sh /app/
COPY service.ttyd.sh /app/
RUN chmod +x /app/entrypoint.sh /app/service.ssh.sh /app/service.ttyd.sh
RUN mkdir -p /srv/stack
WORKDIR /srv/stack
EXPOSE 22 1234
ENTRYPOINT ["/app/entrypoint.sh"]