Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleonm committed Nov 26, 2024
1 parent 9a1e7f6 commit c3e1c30
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
ARG INCLUDE_NPM_ARG
ARG PROJECT_NAME_ARG
ARG ENVIRONMENT_ARG
ARG BUILDPLATFORM

# Pull down the image with .NET Core SDK
FROM --platform=linux/arm64/v8 mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
LABEL maintainer="David Leon <david.leon.m@gmail.com>"

# Message to show the platform
RUN echo "Building for $BUILDPLATFORM"

# Global args re-mapped for this stage
ARG INCLUDE_NPM_ARG
ARG PROJECT_NAME_ARG
Expand All @@ -27,9 +23,6 @@ WORKDIR "/src/$PROJECT_NAME_ARG"
# Deploy the app and dependencies into a deployable unit
RUN dotnet publish "./$PROJECT_NAME_ARG.csproj" --configuration Release --output "/app/publish"

# Global args re-mapped for this stage
ARG BUILDPLATFORM

# Pull down the image which includes only the ASP.NET core runtime
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-alpine

Expand Down

0 comments on commit c3e1c30

Please sign in to comment.