From 802807553376af0c9d644370b50d65d7f1ab1df4 Mon Sep 17 00:00:00 2001 From: Marcelo Moreira de Mello Date: Fri, 9 Apr 2021 14:35:46 -0400 Subject: [PATCH] Don' t need to use venv as f34 is py3 native --- Dockerfile | 4 +--- start.sh | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8200fa4..8e5513e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,12 +21,10 @@ RUN chown django-app:django-app -R /home/django-app # set user USER django-app -RUN python3 -m venv /home/django-app/.virtualenv -RUN source /home/django-app/.virtualenv/bin/activate -RUN pip install -r /home/django-app/code/requirements.txt # set workdir WORKDIR /home/django-app/code +RUN pip install -r /home/django-app/code/requirements.txt # export volume VOLUME /home/django-app/code diff --git a/start.sh b/start.sh index c52fa59..881b693 100644 --- a/start.sh +++ b/start.sh @@ -2,6 +2,4 @@ PATH="/usr/bin:/usr/sbin" -source /home/django-app/.virtualenv/bin/activate - /home/django-app/code/manage.py runserver 0.0.0.0:${PORT}