Merge pull request #192 from SecretiveShell/prune-docker-size

debloat docker build
This commit is contained in:
Brian Dashore 2024-09-11 00:13:16 -04:00 committed by GitHub
commit a2b4e3f21f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 6 deletions

20
.dockerignore Normal file
View 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

View file

@ -1,6 +0,0 @@
models/
loras/
.ruff_cache/
**/__pycache__/
config.yml
api_tokens.yml

View file

@ -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 . .