From 25d92d8dcbaeb2d291ba3e1a9d317d1a71cd3cfe Mon Sep 17 00:00:00 2001 From: Giovanni Rosa Date: Sat, 8 Apr 2023 19:40:40 +0200 Subject: [PATCH] Fix for Dockerfile smell DL3020 --- dockerize/docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerize/docker/Dockerfile b/dockerize/docker/Dockerfile index f2be2c8c..f1cf175c 100644 --- a/dockerize/docker/Dockerfile +++ b/dockerize/docker/Dockerfile @@ -6,7 +6,7 @@ MAINTAINER Dimas Ciputra #RUN ln -s /bin/true /sbin/initctl RUN apt-get clean all RUN apt-get update && apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev -ADD REQUIREMENTS.txt /REQUIREMENTS.txt +COPY REQUIREMENTS.txt /REQUIREMENTS.txt RUN pip install -r /REQUIREMENTS.txt RUN pip install uwsgi @@ -24,7 +24,7 @@ ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile RUN rm -rf /uwsgi.conf -ADD uwsgi.conf /uwsgi.conf +COPY uwsgi.conf /uwsgi.conf # Open port 8080 as we will be running our uwsgi socket on that EXPOSE 8080