File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ RUN dotnet publish -c Release -o out --nologo src/InformaticsGateway/Monai.Deplo
27
27
28
28
# Build runtime image
29
29
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy
30
+ RUN adduser --system --group --no-create-home appuser
30
31
31
32
# Enable elastic client compatibility mode
32
33
ENV ELASTIC_CLIENT_APIVERSIONING=true
@@ -42,6 +43,8 @@ RUN apt-get clean \
42
43
43
44
WORKDIR /opt/monai/ig
44
45
46
+ RUN chown -R appuser:appuser /opt/monai/ig
47
+
45
48
COPY --from=build /app/out .
46
49
COPY --from=build /tools /opt/dotnetcore-tools
47
50
COPY LICENSE ./
@@ -58,4 +61,6 @@ HEALTHCHECK --interval=10s --retries=10 CMD curl --fail http://localhost:5000/he
58
61
RUN ls -lR /opt/monai/ig
59
62
ENV PATH="/opt/dotnetcore-tools:${PATH}"
60
63
64
+ USER appuser
65
+
61
66
ENTRYPOINT ["/opt/monai/ig/Monai.Deploy.InformaticsGateway" ]
You can’t perform that action at this time.
0 commit comments