mirror of
https://github.com/ghndrx/shellmate.git
synced 2026-02-10 14:55:08 +00:00
fix: Dockerfile copy README and src
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -8,13 +8,13 @@ RUN apt-get update && apt-get install -y \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install Python dependencies
|
# Copy everything needed for install
|
||||||
COPY pyproject.toml .
|
COPY pyproject.toml README.md ./
|
||||||
RUN pip install --no-cache-dir .
|
|
||||||
|
|
||||||
# Copy application
|
|
||||||
COPY src/ src/
|
COPY src/ src/
|
||||||
|
|
||||||
|
# Install Python dependencies
|
||||||
|
RUN pip install --no-cache-dir .
|
||||||
|
|
||||||
# Generate SSH host key
|
# Generate SSH host key
|
||||||
RUN mkdir -p /etc/shellmate && \
|
RUN mkdir -p /etc/shellmate && \
|
||||||
ssh-keygen -t ed25519 -f /etc/shellmate/ssh_host_key -N ""
|
ssh-keygen -t ed25519 -f /etc/shellmate/ssh_host_key -N ""
|
||||||
@@ -25,4 +25,6 @@ USER shellmate
|
|||||||
|
|
||||||
EXPOSE 2222
|
EXPOSE 2222
|
||||||
|
|
||||||
|
ENV STOCKFISH_PATH=/usr/games/stockfish
|
||||||
|
|
||||||
CMD ["shellmate-server"]
|
CMD ["shellmate-server"]
|
||||||
|
|||||||
Reference in New Issue
Block a user