Skip to content

Commit

Permalink
Update docker images to aspnet 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fredimachado committed May 14, 2024
1 parent b17f5bd commit 4ad4000
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
16 changes: 3 additions & 13 deletions src/Admin/NCafe.Admin.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
EXPOSE 80

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

RUN apk update && apk add --upgrade apk-tools && apk upgrade --available
RUN apk add --no-cache icu-libs
RUN apk add --no-cache tzdata

RUN addgroup -S app -g 1000 \
&& adduser -S app -G app -u 1000 \
&& mkdir -p /app \
&& chown -R app:app /app
EXPOSE 8080

WORKDIR /app
COPY output .
USER $APP_UID
ENTRYPOINT dotnet NCafe.Admin.Api.dll
16 changes: 3 additions & 13 deletions src/Barista/NCafe.Barista.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
EXPOSE 80

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

RUN apk update && apk add --upgrade apk-tools && apk upgrade --available
RUN apk add --no-cache icu-libs
RUN apk add --no-cache tzdata

RUN addgroup -S app -g 1000 \
&& adduser -S app -G app -u 1000 \
&& mkdir -p /app \
&& chown -R app:app /app
EXPOSE 8080

WORKDIR /app
COPY output .
USER $APP_UID
ENTRYPOINT dotnet NCafe.Barista.Api.dll
16 changes: 3 additions & 13 deletions src/Cashier/NCafe.Cashier.Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
EXPOSE 80

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

RUN apk update && apk add --upgrade apk-tools && apk upgrade --available
RUN apk add --no-cache icu-libs
RUN apk add --no-cache tzdata

RUN addgroup -S app -g 1000 \
&& adduser -S app -G app -u 1000 \
&& mkdir -p /app \
&& chown -R app:app /app
EXPOSE 8080

WORKDIR /app
COPY output .
USER $APP_UID
ENTRYPOINT dotnet NCafe.Cashier.Api.dll

0 comments on commit 4ad4000

Please sign in to comment.