Remove BitTransformerLM/Dockerfile - cleanup for OS launch
Browse files- BitTransformerLM/Dockerfile +0 -27
BitTransformerLM/Dockerfile
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
FROM ubuntu:22.04
|
| 2 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
-
RUN apt-get update && \
|
| 4 |
-
apt-get install -y python3.11 python3-pip python3.11-venv curl && \
|
| 5 |
-
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 6 |
-
|
| 7 |
-
WORKDIR /opt/bit_transformer
|
| 8 |
-
COPY . .
|
| 9 |
-
|
| 10 |
-
ARG TORCH_CUDA=cpu
|
| 11 |
-
RUN pip3 install --no-cache-dir --upgrade pip && \
|
| 12 |
-
if [ "$TORCH_CUDA" = "cu118" ]; then \
|
| 13 |
-
pip3 install torch==2.7.1+cu118 --extra-index-url https://download.pytorch.org/whl/cu118; \
|
| 14 |
-
else \
|
| 15 |
-
pip3 install torch==2.7.1+cpu --extra-index-url https://download.pytorch.org/whl/cpu; \
|
| 16 |
-
fi && \
|
| 17 |
-
pip3 install -r requirements.txt
|
| 18 |
-
|
| 19 |
-
ENV MCP_SERVER_ADDR=http://127.0.0.1:7000
|
| 20 |
-
|
| 21 |
-
EXPOSE 5000 7000
|
| 22 |
-
|
| 23 |
-
RUN chmod +x start.sh
|
| 24 |
-
|
| 25 |
-
HEALTHCHECK CMD curl -f http://localhost:7000/health || exit 1
|
| 26 |
-
|
| 27 |
-
CMD ["/opt/bit_transformer/start.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|