Skip to content

Commit

Permalink
Remove virtualenv in docker container (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Feb 4, 2019
1 parent 919e233 commit eb19c3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/app/Dockerfile
@@ -1,13 +1,12 @@
FROM python:3.6-slim

ARG USE_DEVTOOLS="False"
ENV PY_ENV="/venv"
ENV PY_ENV="/usr/local"
ADD requirements.txt /app/requirements.txt
ADD requirements-prod.txt /app/requirements-prod.txt
ADD requirements-dev.txt /app/requirements-dev.txt
RUN apt-get update \
&& apt-get install -y libffi-dev libssl-dev ca-certificates \
&& python3 -m venv "${PY_ENV}" \
&& "${PY_ENV}/bin/pip" --no-cache-dir -q install -U pip setuptools \
&& "${PY_ENV}/bin/pip" --no-cache-dir -q install -r /app/requirements.txt \
&& "${PY_ENV}/bin/pip" --no-cache-dir -q install -r /app/requirements-prod.txt \
Expand Down

0 comments on commit eb19c3f

Please sign in to comment.