diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..e8118aca --- /dev/null +++ b/.dockerignore @@ -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 \ No newline at end of file diff --git a/docker/.dockerignore b/docker/.dockerignore deleted file mode 100644 index ae8a12c0..00000000 --- a/docker/.dockerignore +++ /dev/null @@ -1,6 +0,0 @@ -models/ -loras/ -.ruff_cache/ -**/__pycache__/ -config.yml -api_tokens.yml \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index 0b709b5a..f3587cca 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 . .