diff --git a/Dockerfile b/Dockerfile index 81ad242..83003e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ FROM python:3.11-slim -# Create a non-root user for security -RUN groupadd -g 1000 flaskuser && useradd -u 1000 -g flaskuser flaskuser + +ARG USER_UID=1000 +ARG USER_GID=1000 + +# --build-arg USER_GID= USER_UID= +RUN groupadd -g "${USER_GID}" flaskuser \ + && useradd -u "${USER_UID}" -g "${USER_GID}" flaskuser WORKDIR /app @@ -17,4 +22,4 @@ RUN chown -R flaskuser:flaskuser /app USER flaskuser # Run with Gunicorn (replaces uwsgi) -CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "4"] \ No newline at end of file +CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "4"] diff --git a/content b/content index f9d6a2d..d0e3035 160000 --- a/content +++ b/content @@ -1 +1 @@ -Subproject commit f9d6a2d1ea0c091d876ee72240216a7ba624ac1e +Subproject commit d0e3035242d1a06096ea175dc8077b87025abbb4