From 2efd25b196dc140fbe8779e5cea14d17bcb6e1bf Mon Sep 17 00:00:00 2001 From: Vikramjeet Date: Wed, 23 Oct 2024 23:57:06 +0530 Subject: [PATCH] Refactor Dockerfiles for serverless functions --- serverless/outpainting/Dockerfile | 2 +- serverless/text-to-image/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serverless/outpainting/Dockerfile b/serverless/outpainting/Dockerfile index ef26bb7..090ebda 100644 --- a/serverless/outpainting/Dockerfile +++ b/serverless/outpainting/Dockerfile @@ -40,7 +40,7 @@ COPY --chown=user:user api/ /app/api/ COPY --chown=user:user scripts/ /app/scripts/ COPY --chown=user:user configs/ /app/configs/ COPY --chown=user:user setup.py /app/ -COPY --chown=user:user pyproject.toml /app/ + # Set HOME for pip cache ENV HOME=/home/user diff --git a/serverless/text-to-image/Dockerfile b/serverless/text-to-image/Dockerfile index 5f4d6e8..a06d883 100644 --- a/serverless/text-to-image/Dockerfile +++ b/serverless/text-to-image/Dockerfile @@ -40,7 +40,7 @@ COPY --chown=user:user api/ /app/api/ COPY --chown=user:user scripts/ /app/scripts/ COPY --chown=user:user configs/ /app/configs/ COPY --chown=user:user setup.py /app/ -COPY --chown=user:user pyproject.toml /app/ + # Set HOME for pip cache ENV HOME=/home/user