mirror of
https://github.com/dockur/windows.git
synced 2025-12-21 14:41:49 +00:00
Compare commits
3 Commits
96b0f5088c
...
528938209a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
528938209a | ||
|
|
0b7e8f01be | ||
|
|
184774f73e |
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@ -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
|
||||||
|
|||||||
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user