We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e657d commit fb04961Copy full SHA for fb04961
Dockerfile
@@ -57,10 +57,10 @@ COPY --chmod=555 scripts/healthcheck.sh ./healthcheck.sh
57
# Copy pre-seeded SQLite database as init bundle
58
COPY --from=builder /src/Dotnet.Samples.AspNetCore.WebApi/storage/players-sqlite3.db ./docker-compose/players-sqlite3.db
59
60
-# Create non-root user and make volume mount point writable
61
-RUN adduser --disabled-password --gecos '' aspnetcore && \
+# Add non-root user and make volume mount point writable
+RUN adduser --system --disabled-password --group aspnetcore && \
62
mkdir -p /storage && \
63
- chown -R aspnetcore:aspnetcore /storage
+ chown aspnetcore:aspnetcore /storage
64
65
USER aspnetcore
66
0 commit comments