diff --git a/Dockerfile b/Dockerfile index 2b5d20f..b1854bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ ENV RELEASE_ID ${RELEASE_ID:-""} COPY requirements.txt ./ -RUN pip install --no-cache-dir -r requirements.txt && rm -rf requirements.txt +RUN apt update && apt install -y libmagic1 && apt clean && pip install --no-cache-dir -r requirements.txt && rm -rf requirements.txt && useradd -r -s /bin/false -M -u 999 shopper COPY ./src . EXPOSE 8080 - +USER 999 ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "4", "--threads", "1", "app:app"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index a541d19..16d96b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,4 +17,4 @@ bleach bcrypt flask-mail requests -filemagic \ No newline at end of file +filemagic