Files
shellmate/Dockerfile
2026-01-27 15:11:08 +00:00

29 lines
512 B
Docker

FROM python:3.11-slim
# Install Stockfish
RUN apt-get update && apt-get install -y \
stockfish \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY pyproject.toml .
RUN pip install --no-cache-dir .
# Copy application
COPY src/ src/
# Generate SSH host key
RUN mkdir -p /etc/shellmate && \
ssh-keygen -t ed25519 -f /etc/shellmate/ssh_host_key -N ""
# Run as non-root
RUN useradd -m shellmate
USER shellmate
EXPOSE 2222
CMD ["shellmate-server"]