From 42fe293a1763fe44b3ecdcbc4fb71f98226b4747 Mon Sep 17 00:00:00 2001 From: marcsello Date: Sun, 29 Nov 2020 03:58:08 +0100 Subject: [PATCH] Fixed docker stuffs --- Dockerfile | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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