Skip to content

Commit

Permalink
Updates dockerfile to net8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-dupdyke committed Jan 13, 2024
1 parent 67e85a8 commit eba4a3d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/Dockerfile-api
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Copyright 2017 Carnegie Mellon University. All Rights Reserved. See LICENSE.md file for terms.

# $ docker build -f Dockerfile-api . -t ghosts/api

#
#multi-stage target: dev
#
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS dev
# multi-stage target: dev
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dev

COPY Ghosts.Api/. /app/Ghosts.Api
COPY Ghosts.Domain/. /app/Ghosts.Domain
Expand All @@ -14,10 +10,8 @@ WORKDIR /app/Ghosts.Api
RUN dotnet publish -c Release -o /app/dist
CMD ["dotnet", "run"]

#
#multi-stage target: prod
#
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS prod
# multi-stage target: prod
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS prod
ARG commit
ENV COMMIT=$commit
COPY --from=dev /app/dist /app
Expand Down

0 comments on commit eba4a3d

Please sign in to comment.