Compare commits

...

3 Commits

Author SHA1 Message Date
kira-offgrid
528938209a
Merge 184774f73e into 0b7e8f01be 2025-09-03 21:25:39 +05:30
renovate[bot]
0b7e8f01be
chore(deps): update hadolint/hadolint-action action to v3.2.0 (#1365)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-03 16:42:46 +02:00
kira-offgrid
184774f73e fix: dockerfile.security.missing-user-entrypoint.missing-user-entrypoint-Dockerfile 2025-09-01 02:55:37 +00:00
2 changed files with 11 additions and 1 deletions

View File

@ -18,7 +18,7 @@ jobs:
path: "assets" path: "assets"
file-endings: ".xml" file-endings: ".xml"
- name: Lint Dockerfile - name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.1.0 uses: hadolint/hadolint-action@v3.2.0
with: with:
dockerfile: Dockerfile dockerfile: Dockerfile
ignore: DL3006,DL3008 ignore: DL3006,DL3008

View File

@ -41,5 +41,15 @@ ENV VERSION="11"
ENV RAM_SIZE="4G" ENV RAM_SIZE="4G"
ENV CPU_CORES="2" ENV CPU_CORES="2"
ENV DISK_SIZE="64G" ENV DISK_SIZE="64G"
# Create non-root user for security
RUN useradd -r -u 1000 -g 0 -s /sbin/nologin appuser
# Switch to non-root user
USER appuser
# Run as non-root user for security
RUN net user winuser /add || echo "User already exists"
USER winuser
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"] ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]