-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 901 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (23 loc) · 901 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
28
29
30
31
32
33
FROM nvidia/cuda:13.1.1-cudnn-devel-ubuntu24.04
LABEL authors="Marcel Gohsen"
SHELL ["/bin/bash", "-c"]
RUN set -x \
&& apt update \
&& apt install -y python3 python3-pip python-is-python3 \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& python3 -m pip config set global.break-system-packages true \
&& python3 -m pip install poetry
COPY pyproject.toml poetry.lock README.md /app/
WORKDIR /app/
RUN set -x \
&& python3 -m poetry config virtualenvs.create false \
&& python3 -m poetry --no-root --no-interaction --no-ansi install \
&& python3 -m pip install --no-build-isolation flash-attn
COPY . /app/
RUN python3 -m poetry --no-interaction --no-ansi install
ENV ADMIN_NAME=""\
ADMIN_PASSWORD=""\
SHARED_TASK="dummy"
EXPOSE 8888
CMD python3 -m poetry run serve --admin-name ${ADMIN_NAME} --admin-password ${ADMIN_PASSWORD} --shared-task ${SHARED_TASK}