Skip to content

Commit

Permalink
feat(Dockerfile): primary structure of dockerfile created
Browse files Browse the repository at this point in the history
* feat(Dockerfile): primary structure of dockerfile created

* feat(Dockerfile): first dockerfile structure added
  • Loading branch information
aliyaghini authored Aug 13, 2024
1 parent 2dd58b8 commit 2092a6c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Build
FROM mcr.microsoft.com/dotnet/sdk:latest AS build
FROM mcr.microsoft.com/dotnet/sdk:latest AS build-env
WORKDIR /app
COPY . .
EXPOSE 80
EXPOSE 443
# Copy the csproj and restore all of the nugets
COPY . ./
RUN dotnet restore ./AnalysisData/AnalysisData.sln

# Copy everything else and build
#COPY . ./
RUN dotnet publish -c Release -o out ./AnalysisData/AnalysisData.sln

# Run
FROM mcr.microsoft.com/dotnet/aspnet:latest
# Build runtime image
FROM mcr.microsoft.com/dotnet/sdk:latest
WORKDIR /app
COPY --from=build /app/out .
#ENV ASPNETCORE_URLS=http://*:8080
CMD dotnet AnalysisData.dll
# CMD /bin/bash
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "AnalysisData.dll"]

0 comments on commit 2092a6c

Please sign in to comment.