mirror of
https://github.com/ghndrx/shellmate.git
synced 2026-02-10 14:55:08 +00:00
Initial scaffold for ShellMate - SSH chess TUI
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user