Skip to content

Commit 775471a

Browse files
committed
Use chiseled docker image
1 parent 5f3a58e commit 775471a

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN dotnet tool restore
99
RUN dotnet restore
1010
RUN dotnet publish --no-restore --configuration Release
1111

12-
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine3.23@sha256:1201dde897ab436b7c6b386f6dbd4f9a3ca0245f9c5a8aac8f8bcdccb4c7d484
12+
FROM mcr.microsoft.com/dotnet/aspnet:10.0.8-noble-chiseled-extra-amd64@sha256:d3552fc1bd9b5195f6a397a547975fa1dbfb21870b4710f929eaa9adc5ceee42
1313
ARG GIT_SHA
1414
WORKDIR /Apps
1515
COPY --from=build /source/src/TeachingRecordSystem.Api/bin/Release/net10.0/publish/ ./Api/
@@ -18,20 +18,12 @@ COPY --from=build /source/src/TeachingRecordSystem.SupportUi/bin/Release/net10.0
1818
COPY --from=build /source/src/TeachingRecordSystem.Worker/bin/Release/net10.0/publish/ ./Worker/
1919
COPY --from=build /source/src/TeachingRecordSystem.AuthorizeAccess/bin/Release/net10.0/publish/ ./AuthorizeAccess/
2020

21-
# Ensure culture data is available
22-
RUN apk add --no-cache tzdata icu-data-full icu-libs
23-
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
24-
25-
RUN apk --no-cache add postgresql17-client
26-
2721
# Fix for invoking trscli
28-
RUN apk --no-cache add libc6-compat
22+
#RUN apk --no-cache add libc6-compat
2923

3024
ENV SENTRY_RELEASE=${GIT_SHA}
3125
ENV GIT_SHA=${GIT_SHA}
3226
ENV ASPNETCORE_HTTP_PORTS=3000
3327
ENV PATH="${PATH}:/Apps/TrsCli"
3428

35-
RUN addgroup -S appgroup -g 20001 && adduser -S appuser -G appgroup -u 10001
36-
37-
USER 10001
29+
USER app

0 commit comments

Comments
 (0)