File tree Expand file tree Collapse file tree 5 files changed +93
-91
lines changed Expand file tree Collapse file tree 5 files changed +93
-91
lines changed Original file line number Diff line number Diff line change 5151
5252 # 6. Security Check
5353 - repo : https://github.com/gitleaks/gitleaks
54- rev : v8.24.2 # Use the latest tag from the repo
54+ rev : v8.24.3 # Use the latest tag from the repo
5555 hooks :
5656 - id : gitleaks
5757
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ FROM base AS production
102102
103103# Create a non-root user and group using standard tools for Debian base
104104RUN groupadd --system nonroot && \
105- useradd --system --gid nonroot --no-create-home nonroot
105+ useradd --create-home -- system --gid nonroot nonroot
106106
107107WORKDIR /app
108108
@@ -119,7 +119,7 @@ ENV VIRTUAL_ENV=/app/.venv \
119119COPY --from=build --chown=nonroot:nonroot /app /app
120120
121121# Switch to the non-root user
122- # USER nonroot
122+ USER nonroot
123123
124124ENTRYPOINT ["tux" ]
125125CMD ["--prod" , "start" ]
You can’t perform that action at this time.
0 commit comments