set user to sfnotifier in Dockerfile

Change-Id: I72617c606d5a6b0021989cf740f95f3302be8a40
Related-To: MKE-9561
diff --git a/Dockerfile b/Dockerfile
index d8d1526..a37a2a2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,8 @@
 FROM python:3.11.0-alpine3.16
 
-LABEL build_date="2022-11-02"
-
 WORKDIR /app
 ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
+ENV LOGPATH=/var/log/sf-notifier/sfnotifier.log
 
 COPY requirements.txt ./
 RUN addgroup --gid 1000 \
@@ -13,6 +12,9 @@
       --disabled-password \
       --home /app \
       sfnotifier && \
+    mkdir -p `dirname $LOGPATH` && \
+    touch $LOGPATH && \
+    chown -R 1000:1000 `dirname $LOGPATH` && \
     apk upgrade --update --no-cache && \
     apk add --no-cache \
       build-base \
@@ -21,5 +23,6 @@
     pip install --upgrade pip && \
     pip install -r /app/requirements.txt && \
     apk del build-base
+USER sfnotifier
 COPY . .
 CMD ./entrypoint.sh