Skip to content

Commit

Permalink
debloat docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretiveShell committed Sep 7, 2024
1 parent d34756d commit 4b11cab
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 4b11cab

Please sign in to comment.