mirror of
https://github.com/open-webui/pipelines
synced 2025-05-14 09:30:46 +00:00
Improve Dockerfile
Add .venv to gitignore & dockerignore
This commit is contained in:
parent
ac037b94f3
commit
02e048c109
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
.venv
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@ __pycache__
|
|||||||
pipelines/*
|
pipelines/*
|
||||||
!pipelines/.gitignore
|
!pipelines/.gitignore
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
.venv
|
@ -18,11 +18,11 @@ RUN apt-get update && \
|
|||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy the application code
|
|
||||||
COPY . /app
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
|
COPY ./requirements.txt .
|
||||||
RUN pip3 install uv && \
|
RUN pip3 install uv && \
|
||||||
if [ "$USE_CUDA" = "true" ]; then \
|
if [ "$USE_CUDA" = "true" ]; then \
|
||||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir && \
|
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir && \
|
||||||
@ -32,6 +32,8 @@ RUN pip3 install uv && \
|
|||||||
uv pip install --system -r requirements.txt --no-cache-dir; \
|
uv pip install --system -r requirements.txt --no-cache-dir; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Copy the application code
|
||||||
|
COPY . .
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
ENV HOST="0.0.0.0"
|
ENV HOST="0.0.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user