diff --git a/Dockerfile b/Dockerfile index 143a2cd..82c073d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]