From ffa23c36ba49cb13b9d680161d703c2455329003 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 19 May 2021 18:19:55 +0200 Subject: [PATCH] Fix Dockerfile file copying best practices Followed the usual advice of preferring COPY to ADD when adding files into the Dockerfile, and made sure to only import the files needed for the program to run. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3c75e0f..dbc3428 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ apt-get -q -y autoremove && apt-get -q -y clean && \ rm -rf /var/lib/apt/lists/* # Final setup & execution -ADD . /app WORKDIR /app +COPY entrypoint.sh main.py /app ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"] CMD ["main.py"]