make it flexible

This commit is contained in:
Mikan
2026-10-07 16:27:38 +04:00
parent 0257ee37dd
commit 87ad220221
2 changed files with 20 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ services:
volumes:
- ./ssh/authorized_keys:/mounted-authorized-keys:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./:/project:ro
- ./:/project
networks:
- gpu-node

View File

@@ -4,8 +4,25 @@ RUN apk add --no-cache \
openssh-server \
docker-cli \
docker-cli-compose \
git \
curl \
wget \
bash \
jq \
vim \
less \
htop \
iproute2 \
bind-tools \
tcpdump \
procps \
util-linux \
tree \
file \
ca-certificates \
tzdata \
&& addgroup -g 1001 docker-host \
&& adduser -D -s /bin/sh operator \
&& adduser -D -s /bin/bash operator \
&& adduser operator docker-host \
&& passwd -d operator \
&& mkdir -p /home/operator/.ssh \
@@ -21,11 +38,9 @@ RUN printf '%s\n' \
COPY entrypoint.sh /entrypoint.sh
COPY gpuctl /usr/local/bin/gpuctl
RUN sed -i 's/\r$//' /usr/local/bin/gpuctl \
RUN sed -i 's/\r$//' /entrypoint.sh /usr/local/bin/gpuctl \
&& chmod +x /entrypoint.sh /usr/local/bin/gpuctl
RUN chmod +x /entrypoint.sh /usr/local/bin/gpuctl
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]