-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker and TLS terminating proxy support
WE2-835 Signed-off-by: Mart Somermaa <[email protected]>
- Loading branch information
Showing
9 changed files
with
146 additions
and
4 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
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,22 @@ | ||
# We're using .NET 6 now, but when we migrate to .NET 8 in the future, we should use chiseled images. | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-jammy | ||
|
||
WORKDIR /app | ||
|
||
COPY ria_public_key.gpg /usr/share/keyrings/ria-repository.gpg | ||
|
||
# Add RIA repository to install the official libdigidocpp-csharp package. As each RUN commits the layer to image, | ||
# need to chain commands and clean up in the end to keep the image small. | ||
RUN echo "deb [signed-by=/usr/share/keyrings/ria-repository.gpg] https://installer.id.ee/media/ubuntu/ jammy main" > /etc/apt/sources.list.d/ria-repository.list && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends libdigidocpp-csharp && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists | ||
|
||
COPY ./WebEid.AspNetCore.Example/bin/Release/net6.0/publish/ . | ||
|
||
ENV ASPNETCORE_ENVIRONMENT=Production | ||
|
||
EXPOSE 80 | ||
|
||
ENTRYPOINT ["dotnet", "WebEid.AspNetCore.Example.dll"] |
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,8 @@ | ||
version: '2' | ||
services: | ||
web-eid-asp-dotnet-example: | ||
image: registry.gitlab.com/web-eid/service/web-eid-authentication-token-validation-dotnet/web-eid-asp-dotnet-example | ||
restart: always | ||
ports: | ||
- '127.0.0.1:8480:80' | ||
|
Binary file not shown.