Compare commits

...

4 Commits

Author SHA1 Message Date
kira-offgrid
0e8f4418b4
Merge 184774f73e into 05330ff64c 2025-09-15 22:56:23 +04:00
Kroese
05330ff64c
fix: Shellcheck warning (#1393) 2025-09-15 17:39:29 +02:00
Kroese
1c15df95ac
feat: Remove leading and trailing spaces from VERSION (#1392) 2025-09-15 14:20:29 +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 12 additions and 1 deletions

View File

@ -42,5 +42,15 @@ ENV VERSION="11"
ENV RAM_SIZE="4G"
ENV CPU_CORES="2"
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"]

View File

@ -24,6 +24,7 @@ parseVersion() {
VERSION="${VERSION:1:-1}"
fi
VERSION=$(expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$")
[ -z "$VERSION" ] && VERSION="win11"
case "${VERSION,,}" in