Skip to content

Commit

Permalink
Merge pull request #192 from SecretiveShell/prune-docker-size
Browse files Browse the repository at this point in the history
debloat docker build
  • Loading branch information
bdashore3 authored Sep 11, 2024
2 parents e00eb09 + 4b11cab commit a2b4e3f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions docker/.dockerignore

This file was deleted.

2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .

Expand Down

0 comments on commit a2b4e3f

Please sign in to comment.