Skip to content

Commit

Permalink
use requirements file to build, so the versions are pinned
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Mar 1, 2021
1 parent 8c02d79 commit f3ce73c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM python:3.8

COPY README.md requirements.txt setup.cfg setup.py /usr/src/file_catalog/
COPY file_catalog /usr/src/file_catalog/file_catalog
RUN pip install --no-cache-dir /usr/src/file_catalog
RUN pip install --no-cache-dir -r /usr/src/file_catalog/requirements.txt

RUN useradd -m -U app
USER app

ENV PYTHONPATH=/usr/src/file_catalog
WORKDIR /usr/src/file_catalog
CMD ["python3", "-m", "file_catalog"]

0 comments on commit f3ce73c

Please # to comment.