Merge pull request #192 from SecretiveShell/prune-docker-size
debloat docker build
This commit is contained in:
commit
a2b4e3f21f
3 changed files with 22 additions and 6 deletions
20
.dockerignore
Normal file
20
.dockerignore
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
.ruff_cache/
|
||||
**/__pycache__/
|
||||
venv
|
||||
.git
|
||||
.gitignore
|
||||
.github
|
||||
|
||||
# Ignore specific application files
|
||||
models/
|
||||
loras/
|
||||
config.yml
|
||||
config_sample.yml
|
||||
api_tokens.yml
|
||||
api_tokens_sample.yml
|
||||
*.bat
|
||||
*.sh
|
||||
update_scripts
|
||||
readme.md
|
||||
colab
|
||||
start.py
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
models/
|
||||
loras/
|
||||
.ruff_cache/
|
||||
**/__pycache__/
|
||||
config.yml
|
||||
api_tokens.yml
|
||||
|
|
@ -22,6 +22,8 @@ COPY pyproject.toml .
|
|||
# Install packages specified in pyproject.toml cu121
|
||||
RUN pip3 install --no-cache-dir .[cu121]
|
||||
|
||||
RUN rm pyproject.toml
|
||||
|
||||
# Copy the current directory contents into the container
|
||||
COPY . .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue