aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: da6a91c6ffe526696569d6a802310c1acd0d839b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
ARG TARGETARCH
WORKDIR /source

COPY RhSolutions.SkuParser.Api/*.csproj .
RUN dotnet restore -a $TARGETARCH

COPY RhSolutions.SkuParser.Api/. .
RUN dotnet publish -a $TARGETARCH --no-restore -o /app

FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
EXPOSE 8080

ENV \
    DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
    LC_ALL=ru_RU.UTF-8 \
    LANG=ru_RU.UTF-8
RUN apk add --no-cache \
    icu-data-full \
    icu-libs

WORKDIR /app
COPY  --from=build /app .
USER $APP_UID
ENTRYPOINT ["./RhSolutions.SkuParser.Api"]