Skip to content

Commit

Permalink
Fix dependency issues (#211)
Browse files Browse the repository at this point in the history
* Detect system/user dependency issues - #210

* Ensure dependencies always get installed as 'user' - fixes #211
  • Loading branch information
techman83 committed Jan 28, 2021
1 parent 3a2170a commit 418fb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netkan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ RUN pip install pip --upgrade
RUN pip install mypy
RUN chown -R netkan:netkan /netkan
USER netkan
RUN pip install --user . --no-warn-script-location
RUN pip install --user . --no-warn-script-location --force-reinstall
RUN mypy .
RUN python -m unittest -v
RUN /home/netkan/.local/bin/netkan --help

FROM python:3.7 as production
COPY --from=base /home/netkan /home/netkan
Expand All @@ -19,6 +18,7 @@ WORKDIR /home/netkan
USER netkan
ADD .gitconfig .
ENV PATH "$PATH:/home/netkan/.local/bin"
RUN /home/netkan/.local/bin/netkan --help
ENTRYPOINT [".local/bin/netkan"]
CMD ["--help"]

Expand Down

0 comments on commit 418fb38

Please sign in to comment.