mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Merge 184774f73e into ef850e9837
This commit is contained in:
commit
1cc1c5050a
1 changed files with 10 additions and 0 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -42,5 +42,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"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue