From 846c47eb94bd5ea072e05286c2374fd220bd55a5 Mon Sep 17 00:00:00 2001 From: Vikramjeet Date: Thu, 24 Oct 2024 20:13:08 +0530 Subject: [PATCH] Refactor Dockerfiles for serverless functions --- serverless/image-to-video/Dockerfile | 3 +-- serverless/inpainting/Dockerfile | 2 -- serverless/outpainting/Dockerfile | 2 -- serverless/text-to-image/Dockerfile | 3 +-- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/serverless/image-to-video/Dockerfile b/serverless/image-to-video/Dockerfile index 2add4c5..3d65c38 100644 --- a/serverless/image-to-video/Dockerfile +++ b/serverless/image-to-video/Dockerfile @@ -49,7 +49,6 @@ USER user COPY --chown=user:user serverless/image-to-video/run_image-to-video.py . -# Add verification step -RUN python -c "import runpod; print(f'RunPod version: {runpod.__version__}')" + CMD ["/usr/bin/python3.11", "run_image-to-video.py"] \ No newline at end of file diff --git a/serverless/inpainting/Dockerfile b/serverless/inpainting/Dockerfile index c94ea15..2ab80fb 100644 --- a/serverless/inpainting/Dockerfile +++ b/serverless/inpainting/Dockerfile @@ -49,7 +49,5 @@ USER user COPY --chown=user:user serverless/inpainting/run_inpainting.py . -# Add verification step -RUN python -c "import runpod; print(f'RunPod version: {runpod.__version__}')" CMD ["/usr/bin/python3.11", "run_inpainting.py"] \ No newline at end of file diff --git a/serverless/outpainting/Dockerfile b/serverless/outpainting/Dockerfile index 064feb2..44914b4 100644 --- a/serverless/outpainting/Dockerfile +++ b/serverless/outpainting/Dockerfile @@ -49,7 +49,5 @@ USER user COPY --chown=user:user serverless/outpainting/run_outpainting.py . -# Add verification step -RUN python -c "import runpod; print(f'RunPod version: {runpod.__version__}')" CMD ["/usr/bin/python3.11", "run_outpainting.py"] \ No newline at end of file diff --git a/serverless/text-to-image/Dockerfile b/serverless/text-to-image/Dockerfile index 0d2ee53..7db662d 100644 --- a/serverless/text-to-image/Dockerfile +++ b/serverless/text-to-image/Dockerfile @@ -49,7 +49,6 @@ USER user COPY --chown=user:user serverless/text-to-image/run_text-to-image.py . -# Add verification step -RUN python -c "import runpod; print(f'RunPod version: {runpod.__version__}')" + CMD ["/usr/bin/python3.11", "run_text-to-image.py"] \ No newline at end of file