Commit aa378a8 1 parent c8f07b2 commit aa378a8 Copy full SHA for aa378a8
File tree 10 files changed +15
-36
lines changed
10 files changed +15
-36
lines changed Original file line number Diff line number Diff line change 57
57
- name : Set up Docker Buildx
58
58
uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
59
59
60
- - name : Set up QEMU
61
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
62
-
63
60
- name : Docker meta
64
61
id : meta
65
62
uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
Original file line number Diff line number Diff line change 58
58
- name : Set up Docker Buildx
59
59
uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
60
60
61
- - name : Set up QEMU
62
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
63
-
64
61
- name : Docker meta
65
62
id : meta
66
63
uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
Original file line number Diff line number Diff line change 57
57
- name : Set up Docker Buildx
58
58
uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
59
59
60
- - name : Set up QEMU
61
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
62
-
63
60
- name : Docker meta
64
61
id : meta
65
62
uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
Original file line number Diff line number Diff line change @@ -119,9 +119,6 @@ jobs:
119
119
- name : Set up Docker Buildx
120
120
uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
121
121
122
- - name : Set up QEMU
123
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
124
-
125
122
# Create SemVer or ref tags dependent of trigger event
126
123
- name : Docker meta
127
124
id : meta
Original file line number Diff line number Diff line change 61
61
- name : Set up Docker Buildx
62
62
uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
63
63
64
- - name : Set up QEMU
65
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
66
-
67
64
- name : Docker meta
68
65
id : meta
69
66
uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
Original file line number Diff line number Diff line change 57
57
- name : Set up Docker Buildx
58
58
uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
59
59
60
- - name : Set up QEMU
61
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
62
-
63
60
- name : Docker meta
64
61
id : meta
65
62
uses : docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
Original file line number Diff line number Diff line change 17
17
# SPDX-License-Identifier: Apache-2.0
18
18
###############################################################
19
19
20
- FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine AS base
21
-
22
- FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 AS publish
20
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
21
+ ARG TARGETARCH
23
22
WORKDIR /
24
23
COPY LICENSE NOTICE.md DEPENDENCIES /
25
24
COPY src/ src/
26
25
RUN dotnet restore "src/credentials/SsiCredentialIssuer.Expiry.App/SsiCredentialIssuer.Expiry.App.csproj"
27
26
WORKDIR /src/credentials/SsiCredentialIssuer.Expiry.App
28
27
RUN dotnet publish "SsiCredentialIssuer.Expiry.App.csproj" -c Release -o /app/publish
29
28
30
- FROM base AS final
29
+ FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine
31
30
ENV COMPlus_EnableDiagnostics=0
32
31
WORKDIR /app
33
32
COPY --from=publish /app/publish .
Original file line number Diff line number Diff line change 17
17
# SPDX-License-Identifier: Apache-2.0
18
18
###############################################################
19
19
20
- FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine AS base
21
-
22
- FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 AS publish
20
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
21
+ ARG TARGETARCH
23
22
WORKDIR /
24
23
COPY LICENSE NOTICE.md DEPENDENCIES /
25
24
COPY /src/database /src/database
26
25
COPY /src/processes/Processes.Worker.Library /src/processes/Processes.Worker.Library
27
26
WORKDIR /src/database/SsiCredentialIssuer.Migrations
28
27
RUN dotnet publish "SsiCredentialIssuer.Migrations.csproj" -c Release -o /migrations/publish
29
28
30
- FROM base AS final
29
+ FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine
31
30
ENV COMPlus_EnableDiagnostics=0
32
31
WORKDIR /migrations
33
32
COPY --from=publish /migrations/publish .
Original file line number Diff line number Diff line change 17
17
# SPDX-License-Identifier: Apache-2.0
18
18
###############################################################
19
19
20
- FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine AS base
21
-
22
- FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 AS publish
20
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
21
+ ARG TARGETARCH
23
22
WORKDIR /
24
23
COPY LICENSE NOTICE.md DEPENDENCIES /
25
24
COPY src/ src/
26
25
RUN dotnet restore "src/processes/Processes.Worker/Processes.Worker.csproj"
27
26
WORKDIR /src/processes/Processes.Worker
28
27
RUN dotnet publish "Processes.Worker.csproj" -c Release -o /app/publish
29
28
30
- FROM base AS final
29
+ FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine
31
30
ENV COMPlus_EnableDiagnostics=0
32
31
WORKDIR /app
33
32
COPY --from=publish /app/publish .
Original file line number Diff line number Diff line change 17
17
# SPDX-License-Identifier: Apache-2.0
18
18
###############################################################
19
19
20
- FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base
21
-
22
- FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 AS publish
20
+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
21
+ ARG TARGETARCH
23
22
WORKDIR /
24
23
COPY LICENSE NOTICE.md DEPENDENCIES /
25
24
COPY src/ src/
26
25
WORKDIR /src/issuer/SsiCredentialIssuer.Service
27
26
RUN dotnet publish "SsiCredentialIssuer.Service.csproj" -c Release -o /app/publish
28
27
29
- FROM base AS final
30
- ENV COMPlus_EnableDiagnostics=0
28
+ FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
29
+ ENV \
30
+ COMPlus_EnableDiagnostics=0 \
31
+ ASPNETCORE_URLS=http://+:8080
31
32
WORKDIR /app
32
33
COPY --from=publish /app/publish .
33
- ENV ASPNETCORE_URLS http://+:8080
34
34
EXPOSE 8080
35
35
RUN chown -R 1000:3000 /app
36
36
USER 1000:3000
You can’t perform that action at this time.
0 commit comments