-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8332004
commit f4d2d84
Showing
8 changed files
with
83 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build | ||
|
||
ARG version=0.0.0-undefined | ||
|
||
WORKDIR /app | ||
|
||
# Copy everything and build | ||
COPY src/ ./ | ||
RUN dotnet publish Giraffe.Website/Giraffe.Website.fsproj -c Release -o published | ||
RUN dotnet publish /p:Version=$version Giraffe.Website/Giraffe.Website.fsproj -c Release -o published | ||
|
||
# Build runtime image | ||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime | ||
FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine AS runtime | ||
|
||
WORKDIR /app | ||
COPY --from=build /app/published . | ||
ENV ASPNETCORE_URLS http://+:8080 | ||
EXPOSE 8080 | ||
ENTRYPOINT ["dotnet", "Giraffe.Website.dll"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters