Update Dockerfile
Browse files- Dockerfile +13 -8
Dockerfile
CHANGED
|
@@ -1,17 +1,26 @@
|
|
| 1 |
FROM pytorch/pytorch:latest
|
| 2 |
|
| 3 |
-
RUN useradd -m -u 1000 user
|
| 4 |
-
USER user
|
| 5 |
# Set working directory
|
| 6 |
WORKDIR /app
|
| 7 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
| 8 |
|
| 9 |
# Install system dependencies
|
| 10 |
RUN apt-get update && apt-get install -y \
|
| 11 |
libgl1-mesa-glx
|
| 12 |
|
| 13 |
|
| 14 |
-
RUN pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Install additional required libraries
|
| 17 |
RUN pip install byaldi qwen-vl-utils
|
|
@@ -19,10 +28,6 @@ RUN pip install byaldi qwen-vl-utils
|
|
| 19 |
# Copy your application code
|
| 20 |
COPY app.py .
|
| 21 |
|
| 22 |
-
COPY --chown=user ./requirements.txt requirements.txt
|
| 23 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 24 |
-
|
| 25 |
-
COPY --chown=user . /app
|
| 26 |
# Expose the port the app runs on
|
| 27 |
EXPOSE 8000
|
| 28 |
|
|
|
|
| 1 |
FROM pytorch/pytorch:latest
|
| 2 |
|
|
|
|
|
|
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
|
|
|
| 5 |
|
| 6 |
# Install system dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
libgl1-mesa-glx
|
| 9 |
|
| 10 |
|
| 11 |
+
RUN pip install --no-cache-dir \
|
| 12 |
+
torch \
|
| 13 |
+
torchvision \
|
| 14 |
+
torchaudio \
|
| 15 |
+
torchao \
|
| 16 |
+
git+https://github.com/huggingface/transformers.git \
|
| 17 |
+
diffusers \
|
| 18 |
+
Pillow \
|
| 19 |
+
byaldi \
|
| 20 |
+
qwen_vl_utils \
|
| 21 |
+
flash-attn \
|
| 22 |
+
fastapi \
|
| 23 |
+
"uvicorn[standard]"
|
| 24 |
|
| 25 |
# Install additional required libraries
|
| 26 |
RUN pip install byaldi qwen-vl-utils
|
|
|
|
| 28 |
# Copy your application code
|
| 29 |
COPY app.py .
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# Expose the port the app runs on
|
| 32 |
EXPOSE 8000
|
| 33 |
|