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}