diff --git a/.dockerignore b/.dockerignore index 67d158d..5935edc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,7 +6,6 @@ CONTRIBUTING.rst docker-compose.yml Dockerfile -requirements.txt tests.py tox.ini diff --git a/Dockerfile b/Dockerfile index d8cccbc..70e18c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,13 @@ RUN groupadd -r snappass && \ WORKDIR $APP_DIR -COPY ["setup.py", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"] +COPY ["setup.py", "requirements.txt", "MANIFEST.in", "README.rst", "AUTHORS.rst", "$APP_DIR/"] COPY ["./snappass", "$APP_DIR/snappass"] RUN python setup.py install && \ chown -R snappass $APP_DIR && \ chgrp -R snappass $APP_DIR +RUN pip install -r requirements.txt USER snappass