Skip to content

Commit

Permalink
Don' t need to use venv as f34 is py3 native
Browse files Browse the repository at this point in the history
  • Loading branch information
tchellomello committed Apr 9, 2021
1 parent 06f68be commit 8028075
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 8028075

Please sign in to comment.