-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 867 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ghcr.io/huggingface/text-generation-inference:3.3.2
RUN apt update && \
apt install openssh-server -y && \
echo "Port 22" >> /etc/ssh/sshd_config && \
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config && \
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN VENV_ACTIVATE_PATH="/usr/src/.venv/bin/activate" && \
if [ -f "$VENV_ACTIVATE_PATH" ]; then \
echo "source $VENV_ACTIVATE_PATH" >> /root/.bashrc; \
else \
echo "Warning: Virtual environment activation script not found at $VENV_ACTIVATE_PATH"; \
fi
WORKDIR /root
EXPOSE 22
EXPOSE 80
ENV PASSWORD="PASSWORD"
ENV LD_LIBRARY_PATH="/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/root/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/"
ENTRYPOINT /entrypoint.sh && /bin/bash