-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Provide a general summary of your changes in the Title above --> <!-- Apply the label "bug" or "enhancement" as applicable. --> ## Description / Motivation <!-- Describe your changes in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If it fixes an open issue, please link to the issue here. --> - Changes using .env.template instead of .env directly to prevent accidents with checking in code and no permanent "local changes" - Adds hot reload capability to head container - Fixes NuGet warnings by introducing package source mapping and removed deprecated v2 - Adds "Not Found" example support - Adds missing "Error" view and action - Adds PR template - Removes `AddSystemTextJson` to ensure proper (de)serialization ## Terms <!-- Place an X in the [] to check. --> <!-- The Code of Conduct helps create a safe space for everyone. We require that everyone agrees to it. --> - [X] I agree to follow this project's [Code of Conduct](CODE_OF_CONDUCT.md). --------- Co-authored-by: Ivan Lieckens <[email protected]>
- Loading branch information
1 parent
55775cf
commit 9ee5314
Showing
14 changed files
with
99 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- Provide a general summary of your changes in the Title above --> | ||
<!-- Apply the label "bug" or "enhancement" as applicable. --> | ||
|
||
## Description / Motivation | ||
<!-- Describe your changes in detail --> | ||
<!-- Why is this change required? What problem does it solve? --> | ||
<!-- If it fixes an open issue, please link to the issue here. --> | ||
|
||
|
||
## Terms | ||
<!-- Place an X in the [] to check. --> | ||
|
||
<!-- The Code of Conduct helps create a safe space for everyone. We require that everyone agrees to it. --> | ||
- [ ] I agree to follow this project's [Code of Conduct](CODE_OF_CONDUCT.md). |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>Error</h1> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>Page not found</h1> |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Dangerous file, never commit | ||
.env |
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
26 changes: 9 additions & 17 deletions
26
local-containers/docker/build/aspnet-core-starter/Dockerfile
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,20 +1,12 @@ | ||
ARG BUILD_IMAGE | ||
ARG RUNTIME_IMAGE | ||
|
||
FROM ${BUILD_IMAGE} AS build | ||
WORKDIR /source | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
ARG PROJECT_FILE | ||
WORKDIR /app | ||
|
||
COPY ./headapps ./ | ||
COPY ./nuget.config ./ | ||
RUN dotnet restore | ||
RUN dotnet publish -c Debug -o /app --no-restore | ||
COPY ${PROJECT_FILE} . | ||
COPY ./headapps/Directory.Packages.props ./../ | ||
COPY ./nuget.config ./../ | ||
|
||
FROM ${RUNTIME_IMAGE} | ||
ARG ENTRYPOINT_ASSEMBLY | ||
ENV ENTRYPOINT_ASSEMBLY="${ENTRYPOINT_ASSEMBLY}" | ||
COPY ./headapps/aspnet-core-starter ./ | ||
|
||
WORKDIR /app | ||
COPY --from=build /app ./ | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
ENTRYPOINT dotnet %ENTRYPOINT_ASSEMBLY% | ||
CMD ["dotnet", "watch", "run", -v, "--urls", "http://*:80"] |
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