Skip to content

Commit 11928e8

Browse files
committed
roll back docker file
1 parent 4470513 commit 11928e8

1 file changed

Lines changed: 5 additions & 25 deletions

File tree

src/authorization/Dockerfile

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,40 @@
11
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
2-
32
WORKDIR /app
4-
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
5-
63
EXPOSE 8080
74

8-
FROM node:18.15.0-alpine AS angularBuild
5+
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
96

7+
FROM node:18.15.0-alpine AS angularBuild
108
WORKDIR /angular
11-
129
COPY ["authorization/EventTriangle.Client/package.json", "EventTriangle.Client/"]
13-
1410
COPY ["authorization/EventTriangle.Client/package-lock.json", "EventTriangle.Client/"]
15-
1611
WORKDIR "EventTriangle.Client"
17-
1812
RUN npm ci
19-
2013
WORKDIR /angular
21-
2214
COPY ["authorization/EventTriangle.Client", "EventTriangle.Client/"]
23-
15+
RUN npm install -g @angular/cli@15.2.7
2416
WORKDIR "EventTriangle.Client"
25-
2617
ARG FRONT_API_URL
27-
2818
RUN sed -i "s|https://localhost:7000/|$FRONT_API_URL|" ./src/assets/config/config.json
29-
3019
RUN ng build --output-path "dist/client"
3120

3221
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS publish
33-
3422
WORKDIR /src
35-
3623
COPY ["authorization/EventTriangleAPI.Authorization.BusinessLogic/EventTriangleAPI.Authorization.BusinessLogic.csproj", "authorization/EventTriangleAPI.Authorization.BusinessLogic/"]
3724
COPY ["authorization/EventTriangleAPI.Authorization.Domain/EventTriangleAPI.Authorization.Domain.csproj", "authorization/EventTriangleAPI.Authorization.Domain/"]
3825
COPY ["authorization/EventTriangleAPI.Authorization.Persistence/EventTriangleAPI.Authorization.Persistence.csproj", "authorization/EventTriangleAPI.Authorization.Persistence/"]
3926
COPY ["authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj", "authorization/EventTriangleAPI.Authorization.Presentation/"]
27+
COPY ["authorization/EventTriangleAPI.Authorization.UnitTests/EventTriangleAPI.Authorization.UnitTests.csproj", "authorization/EventTriangleAPI.Authorization.UnitTests/"]
4028
COPY ["shared/EventTriangleAPI.Shared.Application/EventTriangleAPI.Shared.Application.csproj", "shared/EventTriangleAPI.Shared.Application/"]
4129
COPY ["shared/EventTriangleAPI.Shared.DTO/EventTriangleAPI.Shared.DTO.csproj", "shared/EventTriangleAPI.Shared.DTO/"]
42-
4330
RUN dotnet restore "authorization/EventTriangleAPI.Authorization.Presentation/EventTriangleAPI.Authorization.Presentation.csproj"
44-
4531
COPY . .
46-
4732
WORKDIR "authorization/EventTriangleAPI.Authorization.Presentation"
48-
4933
ARG VERSION
50-
51-
RUN dotnet publish "EventTriangleAPI.Authorization.Presentation.csproj" -c Release -p:Version=$VERSION -o /app/publish /p:UseAppHost=false
34+
RUN dotnet publish "EventTriangleAPI.Authorization.Presentation.csproj" -c Release -p:Version=$VERSION -o /app/publish /p:UseAppHost=false --no-cache
5235

5336
FROM base AS final
5437
WORKDIR /app
55-
5638
COPY --from=publish /app/publish .
57-
5839
COPY --from=angularBuild "/angular/EventTriangle.Client/dist/client" wwwroot
59-
6040
ENTRYPOINT ["dotnet", "EventTriangleAPI.Authorization.Presentation.dll"]

0 commit comments

Comments
 (0)