Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add platform arg to dockerfile #139

Merged
merged 4 commits into from
Jan 16, 2025
Merged

Add platform arg to dockerfile #139

merged 4 commits into from
Jan 16, 2025

Conversation

danielgerlag
Copy link
Contributor

Add platform arg to dockerfile

@danielgerlag danielgerlag requested a review from a team as a code owner January 16, 2025 00:29
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@@ -13,14 +13,14 @@
# limitations under the License.


FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY . .
RUN dotnet restore
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build

FROM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
@@ -12,15 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.


FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY . .
RUN dotnet restore
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build

FROM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
@@ -14,14 +14,14 @@

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY . .
RUN dotnet restore
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build

FROM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
@@ -15,14 +15,14 @@

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY . .
RUN dotnet restore
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build

FROM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: containerImage not pinned by hash
Click Remediation section below to solve this issue
@danielgerlag danielgerlag merged commit d579061 into release/0.1.8 Jan 16, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant